@kubb/adapter-oas 5.0.0-beta.16 → 5.0.0-beta.18
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/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/parser.ts +5 -0
- package/src/resolvers.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/adapter-oas",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.18",
|
|
4
4
|
"description": "OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"oas": "^32.1.18",
|
|
48
48
|
"oas-normalize": "^16.0.4",
|
|
49
49
|
"swagger2openapi": "^7.0.8",
|
|
50
|
-
"@kubb/core": "5.0.0-beta.
|
|
50
|
+
"@kubb/core": "5.0.0-beta.18"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/swagger2openapi": "^7.0.4",
|
package/src/parser.ts
CHANGED
|
@@ -169,6 +169,7 @@ export function createSchemaParser(ctx: OasParserContext) {
|
|
|
169
169
|
default: mergedDefault,
|
|
170
170
|
example: schema.example ?? memberNode.example,
|
|
171
171
|
pattern: schema.pattern ?? ('pattern' in memberNode ? memberNode.pattern : undefined),
|
|
172
|
+
format: schema.format ?? memberNode.format,
|
|
172
173
|
} as ast.DistributiveOmit<ast.SchemaNode, 'kind'>)
|
|
173
174
|
}
|
|
174
175
|
|
|
@@ -359,6 +360,7 @@ export function createSchemaParser(ctx: OasParserContext) {
|
|
|
359
360
|
title: schema.title,
|
|
360
361
|
description: schema.description,
|
|
361
362
|
deprecated: schema.deprecated,
|
|
363
|
+
format: schema.format,
|
|
362
364
|
})
|
|
363
365
|
}
|
|
364
366
|
|
|
@@ -489,6 +491,7 @@ export function createSchemaParser(ctx: OasParserContext) {
|
|
|
489
491
|
writeOnly: schema.writeOnly,
|
|
490
492
|
default: enumDefault,
|
|
491
493
|
example: schema.example,
|
|
494
|
+
format: schema.format,
|
|
492
495
|
}
|
|
493
496
|
|
|
494
497
|
const extensionKey = enumExtensionKeys.find((key) => key in schema)
|
|
@@ -702,6 +705,7 @@ export function createSchemaParser(ctx: OasParserContext) {
|
|
|
702
705
|
description: schema.description,
|
|
703
706
|
deprecated: schema.deprecated,
|
|
704
707
|
nullable,
|
|
708
|
+
format: schema.format,
|
|
705
709
|
})
|
|
706
710
|
}
|
|
707
711
|
|
|
@@ -795,6 +799,7 @@ export function createSchemaParser(ctx: OasParserContext) {
|
|
|
795
799
|
name,
|
|
796
800
|
title: schema.title,
|
|
797
801
|
description: schema.description,
|
|
802
|
+
format: schema.format,
|
|
798
803
|
})
|
|
799
804
|
}
|
|
800
805
|
|
package/src/resolvers.ts
CHANGED