File tree 3 files changed +30
-38
lines changed
3 files changed +30
-38
lines changed Original file line number Diff line number Diff line change 16
16
"test" : " NODE_ENV=test mocha --exit"
17
17
},
18
18
"dependencies" : {
19
- "@asteasolutions/zod-to-openapi" : " ^6.4 .0"
19
+ "@asteasolutions/zod-to-openapi" : " ^7.2 .0"
20
20
},
21
21
"peerDependencies" : {
22
22
"express" : " ^5.0.0-beta.1" ,
Original file line number Diff line number Diff line change @@ -67,22 +67,18 @@ describe("buildOpenAPIDocument", () => {
67
67
type : "object" ,
68
68
properties : {
69
69
address : {
70
- items : {
71
- anyOf : [
72
- {
73
- type : "integer" ,
74
- } ,
75
- {
76
- type : "string" ,
77
- } ,
78
- {
79
- enum : [ "street" , "avenue" , "boulevard" ] ,
80
- type : "string" ,
81
- } ,
82
- ] ,
83
- } ,
84
- maxItems : 3 ,
85
- minItems : 3 ,
70
+ prefixItems : [
71
+ {
72
+ type : "integer" ,
73
+ } ,
74
+ {
75
+ type : "string" ,
76
+ } ,
77
+ {
78
+ enum : [ "street" , "avenue" , "boulevard" ] ,
79
+ type : "string" ,
80
+ } ,
81
+ ] ,
86
82
type : "array" ,
87
83
} ,
88
84
name : { type : "string" } ,
@@ -95,22 +91,18 @@ describe("buildOpenAPIDocument", () => {
95
91
type : "object" ,
96
92
properties : {
97
93
address : {
98
- items : {
99
- anyOf : [
100
- {
101
- type : "integer" ,
102
- } ,
103
- {
104
- type : "string" ,
105
- } ,
106
- {
107
- enum : [ "street" , "avenue" , "boulevard" ] ,
108
- type : "string" ,
109
- } ,
110
- ] ,
111
- } ,
112
- maxItems : 3 ,
113
- minItems : 3 ,
94
+ prefixItems : [
95
+ {
96
+ type : "integer" ,
97
+ } ,
98
+ {
99
+ type : "string" ,
100
+ } ,
101
+ {
102
+ enum : [ "street" , "avenue" , "boulevard" ] ,
103
+ type : "string" ,
104
+ } ,
105
+ ] ,
114
106
type : "array" ,
115
107
} ,
116
108
name : { type : "string" } ,
@@ -268,6 +260,6 @@ describe("buildOpenAPIDocument", () => {
268
260
const responseSchema = document . components ! . schemas ! . ResponseSchema as SchemaObject ;
269
261
const value = responseSchema . properties ! . value as SchemaObject ;
270
262
271
- expect ( value . type ) . to . equal ( "integer " ) ;
263
+ expect ( value . type ) . to . equal ( "string " ) ;
272
264
} ) ;
273
265
} ) ;
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
5
- " @asteasolutions/zod-to-openapi@^6.4 .0 " :
6
- version "6.4 .0"
7
- resolved "https://registry.yarnpkg.com/@asteasolutions/zod-to-openapi/-/zod-to-openapi-6.4 .0.tgz#3081e7f56febdb7c58fcee4dd5cfb3cbcb01742c "
8
- integrity sha512-8cxfF7AHHx2PqnN4Cd8/O8CBu/nVYJP9DpnfVLW3BFb66VJDnqI/CczZnkqMc3SNh6J9GiX7JbJ5T4BSP4HZ2Q ==
5
+ " @asteasolutions/zod-to-openapi@^7.2 .0 " :
6
+ version "7.2 .0"
7
+ resolved "https://registry.yarnpkg.com/@asteasolutions/zod-to-openapi/-/zod-to-openapi-7.2 .0.tgz#19bf1f8bbd380a2ca95d6b1818f7437703da69b1 "
8
+ integrity sha512-Va+Fq1QzKkSgmiYINSp3cASFhMsbdRH/kmCk2feijhC+yNjGoC056CRqihrVFhR8MY8HOZHdlYm2Ns2lmszCiw ==
9
9
dependencies :
10
10
openapi3-ts "^4.1.2"
11
11
You can’t perform that action at this time.
0 commit comments