@elysiajs/openapi 1.4.13 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/openapi.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/openapi.mjs +4 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2989,12 +2989,12 @@ var unwrapSchema = (schema, mapJsonSchema, io = "input") => {
|
|
|
2989
2989
|
if (!schema?.["~standard"]) return;
|
|
2990
2990
|
const vendor = schema["~standard"].vendor;
|
|
2991
2991
|
try {
|
|
2992
|
-
if (schema["~standard"]?.jsonSchema?.[io])
|
|
2993
|
-
return schema["~standard"]?.jsonSchema?.[io]?.({
|
|
2994
|
-
target: "draft-2020-12"
|
|
2995
|
-
});
|
|
2996
2992
|
if (mapJsonSchema?.[vendor] && typeof mapJsonSchema[vendor] === "function")
|
|
2997
2993
|
return enumToOpenApi(mapJsonSchema[vendor](schema));
|
|
2994
|
+
if (schema["~standard"]?.jsonSchema?.[io])
|
|
2995
|
+
return enumToOpenApi(schema["~standard"].jsonSchema[io]({
|
|
2996
|
+
target: "draft-2020-12"
|
|
2997
|
+
}));
|
|
2998
2998
|
switch (vendor) {
|
|
2999
2999
|
case "zod":
|
|
3000
3000
|
if (warned.zod4 || warned.zod3) break;
|
package/dist/cjs/openapi.js
CHANGED
|
@@ -329,12 +329,12 @@ var unwrapSchema = (schema, mapJsonSchema, io = "input") => {
|
|
|
329
329
|
if (!schema?.["~standard"]) return;
|
|
330
330
|
const vendor = schema["~standard"].vendor;
|
|
331
331
|
try {
|
|
332
|
-
if (schema["~standard"]?.jsonSchema?.[io])
|
|
333
|
-
return schema["~standard"]?.jsonSchema?.[io]?.({
|
|
334
|
-
target: "draft-2020-12"
|
|
335
|
-
});
|
|
336
332
|
if (mapJsonSchema?.[vendor] && typeof mapJsonSchema[vendor] === "function")
|
|
337
333
|
return enumToOpenApi(mapJsonSchema[vendor](schema));
|
|
334
|
+
if (schema["~standard"]?.jsonSchema?.[io])
|
|
335
|
+
return enumToOpenApi(schema["~standard"].jsonSchema[io]({
|
|
336
|
+
target: "draft-2020-12"
|
|
337
|
+
}));
|
|
338
338
|
switch (vendor) {
|
|
339
339
|
case "zod":
|
|
340
340
|
if (warned.zod4 || warned.zod3) break;
|
package/dist/index.mjs
CHANGED
|
@@ -2967,12 +2967,12 @@ var unwrapSchema = (schema, mapJsonSchema, io = "input") => {
|
|
|
2967
2967
|
if (!schema?.["~standard"]) return;
|
|
2968
2968
|
const vendor = schema["~standard"].vendor;
|
|
2969
2969
|
try {
|
|
2970
|
-
if (schema["~standard"]?.jsonSchema?.[io])
|
|
2971
|
-
return schema["~standard"]?.jsonSchema?.[io]?.({
|
|
2972
|
-
target: "draft-2020-12"
|
|
2973
|
-
});
|
|
2974
2970
|
if (mapJsonSchema?.[vendor] && typeof mapJsonSchema[vendor] === "function")
|
|
2975
2971
|
return enumToOpenApi(mapJsonSchema[vendor](schema));
|
|
2972
|
+
if (schema["~standard"]?.jsonSchema?.[io])
|
|
2973
|
+
return enumToOpenApi(schema["~standard"].jsonSchema[io]({
|
|
2974
|
+
target: "draft-2020-12"
|
|
2975
|
+
}));
|
|
2976
2976
|
switch (vendor) {
|
|
2977
2977
|
case "zod":
|
|
2978
2978
|
if (warned.zod4 || warned.zod3) break;
|
package/dist/openapi.mjs
CHANGED
|
@@ -299,12 +299,12 @@ var unwrapSchema = (schema, mapJsonSchema, io = "input") => {
|
|
|
299
299
|
if (!schema?.["~standard"]) return;
|
|
300
300
|
const vendor = schema["~standard"].vendor;
|
|
301
301
|
try {
|
|
302
|
-
if (schema["~standard"]?.jsonSchema?.[io])
|
|
303
|
-
return schema["~standard"]?.jsonSchema?.[io]?.({
|
|
304
|
-
target: "draft-2020-12"
|
|
305
|
-
});
|
|
306
302
|
if (mapJsonSchema?.[vendor] && typeof mapJsonSchema[vendor] === "function")
|
|
307
303
|
return enumToOpenApi(mapJsonSchema[vendor](schema));
|
|
304
|
+
if (schema["~standard"]?.jsonSchema?.[io])
|
|
305
|
+
return enumToOpenApi(schema["~standard"].jsonSchema[io]({
|
|
306
|
+
target: "draft-2020-12"
|
|
307
|
+
}));
|
|
308
308
|
switch (vendor) {
|
|
309
309
|
case "zod":
|
|
310
310
|
if (warned.zod4 || warned.zod3) break;
|