@kubb/plugin-ts 3.4.0 → 3.4.2
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/{chunk-ERXICOY4.js → chunk-2YTCTJWU.js} +3 -3
- package/dist/{chunk-ERXICOY4.js.map → chunk-2YTCTJWU.js.map} +1 -1
- package/dist/{chunk-FW6ZCHXE.cjs → chunk-NKFTP2AF.cjs} +3 -3
- package/dist/{chunk-FW6ZCHXE.cjs.map → chunk-NKFTP2AF.cjs.map} +1 -1
- package/dist/{chunk-EN5U6PAU.js → chunk-Q4ZWQVCK.js} +13 -6
- package/dist/chunk-Q4ZWQVCK.js.map +1 -0
- package/dist/{chunk-X34DKP5X.cjs → chunk-YYI2WXOY.cjs} +21 -14
- package/dist/chunk-YYI2WXOY.cjs.map +1 -0
- package/dist/components.cjs +3 -3
- package/dist/components.js +1 -1
- package/dist/generators.cjs +4 -4
- package/dist/generators.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/package.json +9 -9
- package/src/generators/typeGenerator.tsx +1 -1
- package/src/parser.ts +1 -1
- package/src/plugin.ts +9 -2
- package/dist/chunk-EN5U6PAU.js.map +0 -1
- package/dist/chunk-X34DKP5X.cjs.map +0 -1
|
@@ -2399,7 +2399,7 @@ function parse({ parent, current, siblings }, options) {
|
|
|
2399
2399
|
const minSchema = schemas.find((schema) => schema.keyword === pluginOas.schemaKeywords.min);
|
|
2400
2400
|
const maxSchema = schemas.find((schema) => schema.keyword === pluginOas.schemaKeywords.max);
|
|
2401
2401
|
const matchesSchema = schemas.find((schema) => schema.keyword === pluginOas.schemaKeywords.matches);
|
|
2402
|
-
let type = schemas.map((schema) => parse({ parent: current, current: schema, siblings }, options)).filter(Boolean)[0];
|
|
2402
|
+
let type = schemas.map((schema) => parse({ parent: current, current: schema, siblings: schemas }, options)).filter(Boolean)[0];
|
|
2403
2403
|
if (isNullable) {
|
|
2404
2404
|
type = factory__namespace.createUnionDeclaration({
|
|
2405
2405
|
nodes: [type, factory__namespace.keywordTypeNodes.null]
|
|
@@ -2582,5 +2582,5 @@ react/cjs/react.development.js:
|
|
|
2582
2582
|
exports.OasType = OasType;
|
|
2583
2583
|
exports.Type = Type2;
|
|
2584
2584
|
exports.init_cjs_shims = init_cjs_shims;
|
|
2585
|
-
//# sourceMappingURL=chunk-
|
|
2586
|
-
//# sourceMappingURL=chunk-
|
|
2585
|
+
//# sourceMappingURL=chunk-NKFTP2AF.cjs.map
|
|
2586
|
+
//# sourceMappingURL=chunk-NKFTP2AF.cjs.map
|