@kubb/adapter-oas 5.29.2 → 5.29.3
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/docs/options.md +3 -6
- package/docs/overview.md +1 -1
- package/kubb-extension.json +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var compatibility = {
|
|
|
15
15
|
"node": ">=22.22"
|
|
16
16
|
};
|
|
17
17
|
// package.json
|
|
18
|
-
var version = "5.29.
|
|
18
|
+
var version = "5.29.3";
|
|
19
19
|
// src/constants.ts
|
|
20
20
|
/**
|
|
21
21
|
* Default parser options applied when no explicit options are provided.
|
|
@@ -4645,9 +4645,9 @@ function toInputMeta({ document, server, authSchemes }) {
|
|
|
4645
4645
|
}
|
|
4646
4646
|
/**
|
|
4647
4647
|
* Default Kubb adapter for OpenAPI 2.0, 3.0, 3.1, and 3.2 specifications. Reads the
|
|
4648
|
-
* spec from `input` (a file path, URL, inline content, or parsed object),
|
|
4649
|
-
*
|
|
4650
|
-
*
|
|
4648
|
+
* spec from `input` (a file path, URL, inline content, or parsed object), resolves
|
|
4649
|
+
* the base URL, and converts every schema and operation into the universal AST that
|
|
4650
|
+
* every downstream plugin consumes. Set `validate: true` to also check the spec.
|
|
4651
4651
|
*
|
|
4652
4652
|
* Configure once on `defineConfig`. The adapter's choices (date representation,
|
|
4653
4653
|
* integer width, server URL) apply to every plugin in the build.
|
|
@@ -4678,7 +4678,7 @@ const adapterOas = (0, _kubb_core.defineExtension)({
|
|
|
4678
4678
|
compatibility,
|
|
4679
4679
|
issues: "https://github.com/kubb-labs/kubb/issues"
|
|
4680
4680
|
},
|
|
4681
|
-
setup: ({ validate =
|
|
4681
|
+
setup: ({ validate = false, contentType, server, discriminator = "preserve", enums = "inline", pathParamsCasing, dateType = DEFAULT_PARSER_OPTIONS.dateType, integerType = DEFAULT_PARSER_OPTIONS.integerType, unknownType = DEFAULT_PARSER_OPTIONS.unknownType, enumSuffix = DEFAULT_PARSER_OPTIONS.enumSuffix, emptySchemaType = unknownType || DEFAULT_PARSER_OPTIONS.emptySchemaType }) => ({
|
|
4682
4682
|
validate,
|
|
4683
4683
|
contentType,
|
|
4684
4684
|
server,
|