@skmtc/core 0.0.926 → 0.0.929
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/esm/app/validate.d.ts +0 -1
- package/esm/app/validate.d.ts.map +1 -1
- package/esm/app/validate.js +0 -1
- package/esm/context/CoreContext.d.ts +1 -1
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +7 -6
- package/esm/context/GenerateContext.d.ts +1 -1
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +4 -5
- package/esm/context/ParseContext.d.ts +1 -134
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +11 -157
- package/esm/context/RenderContext.d.ts +1 -6
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +9 -19
- package/esm/context/StackTrail.d.ts +0 -172
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/StackTrail.js +1 -195
- package/esm/dsl/Stringable.d.ts +0 -1
- package/esm/dsl/Stringable.d.ts.map +1 -1
- package/esm/dsl/Stringable.js +1 -76
- package/esm/dsl/model/toModelBase.d.ts +2 -3
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.js +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts +2 -2
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.js +1 -1
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.js +1 -1
- package/esm/helpers/ResultsLog.js +1 -1
- package/esm/helpers/collateExamples.d.ts +0 -1
- package/esm/helpers/collateExamples.d.ts.map +1 -1
- package/esm/helpers/collateExamples.js +0 -1
- package/esm/helpers/formatNumber.d.ts +0 -1
- package/esm/helpers/formatNumber.d.ts.map +1 -1
- package/esm/helpers/formatNumber.js +0 -1
- package/esm/helpers/isEmpty.d.ts +0 -60
- package/esm/helpers/isEmpty.d.ts.map +1 -1
- package/esm/helpers/isEmpty.js +1 -61
- package/esm/helpers/naming.js +2 -2
- package/esm/helpers/refFns.d.ts +0 -1
- package/esm/helpers/refFns.d.ts.map +1 -1
- package/esm/helpers/refFns.js +0 -1
- package/esm/helpers/strings.d.ts +0 -1
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/strings.js +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +0 -1
- package/esm/helpers/tracer.d.ts +1 -2
- package/esm/helpers/tracer.d.ts.map +1 -1
- package/esm/helpers/tracer.js +1 -1
- package/esm/mod.d.ts +0 -13
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +0 -13
- package/esm/oas/_helpers/parseEnum.d.ts +8 -136
- package/esm/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/esm/oas/_helpers/parseEnum.js +21 -119
- package/esm/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/esm/oas/_helpers/parseNullable.js +16 -6
- package/esm/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/esm/oas/array/Array.d.ts +18 -96
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +38 -102
- package/esm/oas/array/array-types.d.ts +6 -174
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +4 -76
- package/esm/oas/array/toArray.d.ts +0 -52
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/array/toArray.js +67 -72
- package/esm/oas/boolean/Boolean.d.ts +12 -133
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +28 -134
- package/esm/oas/boolean/boolean-types.d.ts +14 -1
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
- package/esm/oas/boolean/boolean-types.js +4 -1
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +75 -19
- package/esm/oas/components/Components.d.ts +0 -2
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +0 -2
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
- package/esm/oas/components/toComponentsV3.js +7 -9
- package/esm/oas/discriminator/Discriminator.d.ts +0 -1
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +0 -1
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/esm/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/esm/oas/document/Document.d.ts +5 -1
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +7 -1
- package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/esm/oas/document/toDocumentFieldsV3.js +11 -8
- package/esm/oas/example/Example.d.ts +10 -85
- package/esm/oas/example/Example.d.ts.map +1 -1
- package/esm/oas/example/Example.js +36 -105
- package/esm/oas/example/toExamplesV3.d.ts +1 -1
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +13 -8
- package/esm/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/ExternalDocs.js +18 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/esm/oas/externalDocs/externalDocsTypes.js +6 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/toExternalDocs.js +15 -0
- package/esm/oas/header/Header.d.ts +6 -6
- package/esm/oas/header/Header.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.js +9 -5
- package/esm/oas/info/Info.d.ts +0 -1
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +0 -1
- package/esm/oas/integer/Integer.d.ts +18 -81
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +33 -82
- package/esm/oas/integer/integer-types.d.ts +21 -1
- package/esm/oas/integer/integer-types.d.ts.map +1 -1
- package/esm/oas/integer/integer-types.js +8 -2
- package/esm/oas/integer/toInteger.d.ts.map +1 -1
- package/esm/oas/integer/toInteger.js +66 -19
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/esm/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/esm/oas/number/Number.d.ts +18 -164
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +33 -165
- package/esm/oas/number/number-types.d.ts +22 -2
- package/esm/oas/number/number-types.d.ts.map +1 -1
- package/esm/oas/number/number-types.js +4 -1
- package/esm/oas/number/toNumber.d.ts +0 -62
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +66 -81
- package/esm/oas/object/Object.d.ts +0 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +0 -1
- package/esm/oas/object/toObject.d.ts.map +1 -1
- package/esm/oas/object/toObject.js +38 -13
- package/esm/oas/operation/Operation.d.ts +9 -108
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +16 -108
- package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/oas/operation/toOperationsV3.js +12 -7
- package/esm/oas/parameter/Parameter.d.ts +12 -13
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +0 -3
- package/esm/oas/parameter/parameter-types.d.ts +0 -20
- package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
- package/esm/oas/parameter/parameter-types.js +0 -20
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.js +14 -11
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/esm/oas/pathItem/toPathItemV3.js +2 -1
- package/esm/oas/ref/Ref.d.ts +0 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +0 -1
- package/esm/oas/ref/toRefV31.d.ts.map +1 -1
- package/esm/oas/ref/toRefV31.js +4 -1
- package/esm/oas/requestBody/RequestBody.d.ts +0 -1
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +0 -1
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/esm/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/esm/oas/response/Response.d.ts +0 -1
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +0 -1
- package/esm/oas/response/toResponseV3.d.ts.map +1 -1
- package/esm/oas/response/toResponseV3.js +9 -8
- package/esm/oas/schema/Schema.d.ts +0 -1
- package/esm/oas/schema/Schema.d.ts.map +1 -1
- package/esm/oas/schema/Schema.js +1 -1
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/oas/schema/toSchemasV3.js +10 -16
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/esm/oas/server/Server.d.ts +0 -1
- package/esm/oas/server/Server.d.ts.map +1 -1
- package/esm/oas/server/Server.js +0 -1
- package/esm/oas/server/toServerV3.d.ts.map +1 -1
- package/esm/oas/server/toServerV3.js +2 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/esm/oas/string/String.d.ts +16 -88
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +33 -91
- package/esm/oas/string/string-types.d.ts +23 -80
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/string-types.js +6 -2
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/string/toString.js +68 -18
- package/esm/oas/tag/Tag.d.ts +0 -1
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +0 -1
- package/esm/oas/union/toUnion.d.ts.map +1 -1
- package/esm/oas/union/toUnion.js +6 -2
- package/esm/oas/unknown/Unknown.d.ts +3 -1
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +8 -1
- package/esm/oas/unknown/toUnknown.js +1 -1
- package/esm/oas/void/Void.d.ts +0 -1
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +0 -1
- package/esm/types/Brand.d.ts +0 -1
- package/esm/types/Brand.d.ts.map +1 -1
- package/esm/types/Brand.js +1 -10
- package/esm/types/CustomValue.d.ts +0 -1
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +0 -1
- package/esm/types/DenoJson.d.ts +0 -1
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +0 -1
- package/esm/types/EnrichmentRequest.d.ts +0 -1
- package/esm/types/EnrichmentRequest.d.ts.map +1 -1
- package/esm/types/EnrichmentRequest.js +1 -1
- package/esm/types/Enrichments.d.ts +0 -1
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +0 -1
- package/esm/types/GeneratorKeys.d.ts +0 -1
- package/esm/types/GeneratorKeys.d.ts.map +1 -1
- package/esm/types/GeneratorKeys.js +0 -1
- package/esm/types/Manifest.d.ts +0 -1
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +0 -1
- package/esm/types/Method.d.ts +0 -165
- package/esm/types/Method.d.ts.map +1 -1
- package/esm/types/Method.js +1 -141
- package/esm/types/ModuleExport.d.ts +0 -1
- package/esm/types/ModuleExport.d.ts.map +1 -1
- package/esm/types/ModuleExport.js +0 -1
- package/esm/types/PrettierConfig.d.ts +0 -1
- package/esm/types/PrettierConfig.d.ts.map +1 -1
- package/esm/types/PrettierConfig.js +0 -1
- package/esm/types/Preview.d.ts +0 -1
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +0 -1
- package/esm/types/RefName.d.ts +0 -1
- package/esm/types/RefName.d.ts.map +1 -1
- package/esm/types/RefName.js +1 -1
- package/esm/types/Results.d.ts +0 -1
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Results.js +0 -1
- package/esm/types/Settings.d.ts +0 -1
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +0 -1
- package/esm/types/TypeSystem.d.ts +0 -1
- package/esm/types/TypeSystem.d.ts.map +1 -1
- package/esm/types/TypeSystem.js +1 -1
- package/package.json +1 -9
- package/script/app/validate.d.ts +0 -1
- package/script/app/validate.d.ts.map +1 -1
- package/script/app/validate.js +0 -1
- package/script/context/CoreContext.d.ts +1 -1
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +7 -6
- package/script/context/GenerateContext.d.ts +1 -1
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +4 -38
- package/script/context/ParseContext.d.ts +1 -134
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +12 -192
- package/script/context/RenderContext.d.ts +1 -6
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +9 -52
- package/script/context/StackTrail.d.ts +0 -172
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/StackTrail.js +1 -195
- package/script/dsl/Stringable.d.ts +0 -1
- package/script/dsl/Stringable.d.ts.map +1 -1
- package/script/dsl/Stringable.js +0 -76
- package/script/dsl/model/toModelBase.d.ts +2 -3
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.js +5 -2
- package/script/dsl/operation/toOperationBase.d.ts +2 -2
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.js +5 -2
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.js +5 -2
- package/script/helpers/ResultsLog.js +5 -2
- package/script/helpers/collateExamples.d.ts +0 -1
- package/script/helpers/collateExamples.d.ts.map +1 -1
- package/script/helpers/collateExamples.js +0 -1
- package/script/helpers/formatNumber.d.ts +0 -1
- package/script/helpers/formatNumber.d.ts.map +1 -1
- package/script/helpers/formatNumber.js +0 -1
- package/script/helpers/isEmpty.d.ts +0 -60
- package/script/helpers/isEmpty.d.ts.map +1 -1
- package/script/helpers/isEmpty.js +1 -61
- package/script/helpers/naming.js +1 -1
- package/script/helpers/refFns.d.ts +0 -1
- package/script/helpers/refFns.d.ts.map +1 -1
- package/script/helpers/refFns.js +0 -1
- package/script/helpers/strings.d.ts +0 -1
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/strings.js +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/script/helpers/toResolvedArtifactPath.js +2 -3
- package/script/helpers/tracer.d.ts +1 -2
- package/script/helpers/tracer.d.ts.map +1 -1
- package/script/helpers/tracer.js +1 -1
- package/script/mod.d.ts +0 -13
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +15 -28
- package/script/oas/_helpers/parseEnum.d.ts +8 -136
- package/script/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/script/oas/_helpers/parseEnum.js +21 -152
- package/script/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/script/oas/_helpers/parseNullable.js +16 -39
- package/script/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/script/oas/array/Array.d.ts +18 -96
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +38 -102
- package/script/oas/array/array-types.d.ts +6 -174
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +5 -77
- package/script/oas/array/toArray.d.ts +0 -52
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/array/toArray.js +67 -72
- package/script/oas/boolean/Boolean.d.ts +12 -133
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +28 -134
- package/script/oas/boolean/boolean-types.d.ts +14 -1
- package/script/oas/boolean/boolean-types.d.ts.map +1 -1
- package/script/oas/boolean/boolean-types.js +4 -1
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +75 -19
- package/script/oas/components/Components.d.ts +0 -2
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +0 -2
- package/script/oas/components/toComponentsV3.d.ts.map +1 -1
- package/script/oas/components/toComponentsV3.js +7 -9
- package/script/oas/discriminator/Discriminator.d.ts +0 -1
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/script/oas/discriminator/Discriminator.js +0 -1
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/script/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/script/oas/document/Document.d.ts +5 -1
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/document/Document.js +7 -1
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/script/oas/document/toDocumentFieldsV3.js +11 -8
- package/script/oas/example/Example.d.ts +10 -85
- package/script/oas/example/Example.d.ts.map +1 -1
- package/script/oas/example/Example.js +36 -105
- package/script/oas/example/toExamplesV3.d.ts +1 -1
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +13 -8
- package/script/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/script/oas/externalDocs/ExternalDocs.js +22 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/script/oas/{requestBody/requestBody-types.js → externalDocs/externalDocsTypes.js} +3 -6
- package/script/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/script/oas/{response/response-types.js → externalDocs/toExternalDocs.js} +16 -11
- package/script/oas/header/Header.d.ts +6 -6
- package/script/oas/header/Header.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.js +9 -5
- package/script/oas/info/Info.d.ts +0 -1
- package/script/oas/info/Info.d.ts.map +1 -1
- package/script/oas/info/Info.js +0 -1
- package/script/oas/integer/Integer.d.ts +18 -81
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +33 -82
- package/script/oas/integer/integer-types.d.ts +21 -1
- package/script/oas/integer/integer-types.d.ts.map +1 -1
- package/script/oas/integer/integer-types.js +8 -2
- package/script/oas/integer/toInteger.d.ts.map +1 -1
- package/script/oas/integer/toInteger.js +65 -18
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/script/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/script/oas/number/Number.d.ts +18 -164
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +33 -165
- package/script/oas/number/number-types.d.ts +22 -2
- package/script/oas/number/number-types.d.ts.map +1 -1
- package/script/oas/number/number-types.js +4 -1
- package/script/oas/number/toNumber.d.ts +0 -62
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +66 -81
- package/script/oas/object/Object.d.ts +0 -1
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +0 -1
- package/script/oas/object/toObject.d.ts.map +1 -1
- package/script/oas/object/toObject.js +38 -46
- package/script/oas/operation/Operation.d.ts +9 -108
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +16 -108
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/script/oas/operation/toOperationsV3.js +12 -7
- package/script/oas/parameter/Parameter.d.ts +12 -13
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +0 -3
- package/script/oas/parameter/parameter-types.d.ts +0 -20
- package/script/oas/parameter/parameter-types.d.ts.map +1 -1
- package/script/oas/parameter/parameter-types.js +1 -21
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.js +14 -11
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/script/oas/pathItem/toPathItemV3.js +2 -1
- package/script/oas/ref/Ref.d.ts +0 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +0 -1
- package/script/oas/ref/toRefV31.d.ts.map +1 -1
- package/script/oas/ref/toRefV31.js +4 -1
- package/script/oas/requestBody/RequestBody.d.ts +0 -1
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/script/oas/requestBody/RequestBody.js +0 -1
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/script/oas/response/Response.d.ts +0 -1
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +0 -1
- package/script/oas/response/toResponseV3.d.ts.map +1 -1
- package/script/oas/response/toResponseV3.js +9 -8
- package/script/oas/schema/Schema.d.ts +0 -1
- package/script/oas/schema/Schema.d.ts.map +1 -1
- package/script/oas/schema/Schema.js +0 -1
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/script/oas/schema/toSchemasV3.js +10 -16
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/script/oas/server/Server.d.ts +0 -1
- package/script/oas/server/Server.d.ts.map +1 -1
- package/script/oas/server/Server.js +0 -1
- package/script/oas/server/toServerV3.d.ts.map +1 -1
- package/script/oas/server/toServerV3.js +2 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/script/oas/string/String.d.ts +16 -88
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +33 -91
- package/script/oas/string/string-types.d.ts +23 -80
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/string-types.js +6 -2
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/string/toString.js +68 -18
- package/script/oas/tag/Tag.d.ts +0 -1
- package/script/oas/tag/Tag.d.ts.map +1 -1
- package/script/oas/tag/Tag.js +0 -1
- package/script/oas/union/toUnion.d.ts.map +1 -1
- package/script/oas/union/toUnion.js +6 -2
- package/script/oas/unknown/Unknown.d.ts +3 -1
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +8 -1
- package/script/oas/unknown/toUnknown.js +1 -1
- package/script/oas/void/Void.d.ts +0 -1
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +0 -1
- package/script/types/Brand.d.ts +0 -1
- package/script/types/Brand.d.ts.map +1 -1
- package/script/types/Brand.js +0 -10
- package/script/types/CustomValue.d.ts +0 -1
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +0 -1
- package/script/types/DenoJson.d.ts +0 -1
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +0 -1
- package/script/types/EnrichmentRequest.d.ts +0 -1
- package/script/types/EnrichmentRequest.d.ts.map +1 -1
- package/script/types/EnrichmentRequest.js +1 -2
- package/script/types/Enrichments.d.ts +0 -1
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +35 -36
- package/script/types/GeneratorKeys.d.ts +0 -1
- package/script/types/GeneratorKeys.d.ts.map +1 -1
- package/script/types/GeneratorKeys.js +2 -3
- package/script/types/Manifest.d.ts +0 -1
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +35 -36
- package/script/types/Method.d.ts +0 -165
- package/script/types/Method.d.ts.map +1 -1
- package/script/types/Method.js +1 -141
- package/script/types/ModuleExport.d.ts +0 -1
- package/script/types/ModuleExport.d.ts.map +1 -1
- package/script/types/ModuleExport.js +0 -1
- package/script/types/PrettierConfig.d.ts +0 -1
- package/script/types/PrettierConfig.d.ts.map +1 -1
- package/script/types/PrettierConfig.js +35 -36
- package/script/types/Preview.d.ts +0 -1
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +35 -36
- package/script/types/RefName.d.ts +0 -1
- package/script/types/RefName.d.ts.map +1 -1
- package/script/types/RefName.js +1 -2
- package/script/types/Results.d.ts +0 -1
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Results.js +35 -36
- package/script/types/Settings.d.ts +0 -1
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +35 -36
- package/script/types/TypeSystem.d.ts +0 -1
- package/script/types/TypeSystem.d.ts.map +1 -1
- package/script/types/TypeSystem.js +0 -1
- package/esm/_dnt.polyfills.d.ts +0 -12
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -15
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -48
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1427
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -117
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -103
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -96
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -159
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -22
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -29
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -19
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -30
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -9
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -81
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -20
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -6
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -13
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -93
- package/esm/oas/_helpers/parseDefault.d.ts +0 -164
- package/esm/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/esm/oas/_helpers/parseDefault.js +0 -144
- package/esm/oas/_helpers/parseExample.d.ts +0 -123
- package/esm/oas/_helpers/parseExample.d.ts.map +0 -1
- package/esm/oas/_helpers/parseExample.js +0 -103
- package/esm/oas/_helpers/parseFormat.d.ts +0 -169
- package/esm/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/esm/oas/_helpers/parseFormat.js +0 -154
- package/esm/oas/components/components-types.d.ts +0 -19
- package/esm/oas/components/components-types.d.ts.map +0 -1
- package/esm/oas/components/components-types.js +0 -21
- package/esm/oas/document/document-types.d.ts +0 -16
- package/esm/oas/document/document-types.d.ts.map +0 -1
- package/esm/oas/document/document-types.js +0 -18
- package/esm/oas/header/header-types.d.ts +0 -50
- package/esm/oas/header/header-types.d.ts.map +0 -1
- package/esm/oas/header/header-types.js +0 -30
- package/esm/oas/mediaType/mediaType-types.d.ts +0 -29
- package/esm/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/esm/oas/mediaType/mediaType-types.js +0 -18
- package/esm/oas/object/object-types.d.ts +0 -19
- package/esm/oas/object/object-types.d.ts.map +0 -1
- package/esm/oas/object/object-types.js +0 -23
- package/esm/oas/operation/operation-types.d.ts +0 -273
- package/esm/oas/operation/operation-types.d.ts.map +0 -1
- package/esm/oas/operation/operation-types.js +0 -133
- package/esm/oas/pathItem/pathItem-types.d.ts +0 -12
- package/esm/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/esm/oas/pathItem/pathItem-types.js +0 -12
- package/esm/oas/requestBody/requestBody-types.d.ts +0 -10
- package/esm/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/esm/oas/requestBody/requestBody-types.js +0 -9
- package/esm/oas/response/response-types.d.ts +0 -12
- package/esm/oas/response/response-types.d.ts.map +0 -1
- package/esm/oas/response/response-types.js +0 -11
- package/esm/oas/schema/schema-types.d.ts +0 -12
- package/esm/oas/schema/schema-types.d.ts.map +0 -1
- package/esm/oas/schema/schema-types.js +0 -19
- package/esm/oas/union/union-types.d.ts +0 -34
- package/esm/oas/union/union-types.d.ts.map +0 -1
- package/esm/oas/union/union-types.js +0 -19
- package/esm/run/toV3JsonDocument.d.ts +0 -151
- package/esm/run/toV3JsonDocument.d.ts.map +0 -1
- package/esm/run/toV3JsonDocument.js +0 -172
- package/script/_dnt.polyfills.d.ts +0 -12
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -16
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -55
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1431
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -121
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -106
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -35
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -99
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -162
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -25
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -22
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -12
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -84
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -23
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -7
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -18
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -97
- package/script/oas/_helpers/parseDefault.d.ts +0 -164
- package/script/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/script/oas/_helpers/parseDefault.js +0 -181
- package/script/oas/_helpers/parseExample.d.ts +0 -123
- package/script/oas/_helpers/parseExample.d.ts.map +0 -1
- package/script/oas/_helpers/parseExample.js +0 -140
- package/script/oas/_helpers/parseFormat.d.ts +0 -169
- package/script/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/script/oas/_helpers/parseFormat.js +0 -191
- package/script/oas/components/components-types.d.ts +0 -19
- package/script/oas/components/components-types.d.ts.map +0 -1
- package/script/oas/components/components-types.js +0 -57
- package/script/oas/document/document-types.d.ts +0 -16
- package/script/oas/document/document-types.d.ts.map +0 -1
- package/script/oas/document/document-types.js +0 -54
- package/script/oas/header/header-types.d.ts +0 -50
- package/script/oas/header/header-types.d.ts.map +0 -1
- package/script/oas/header/header-types.js +0 -66
- package/script/oas/mediaType/mediaType-types.d.ts +0 -29
- package/script/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/script/oas/mediaType/mediaType-types.js +0 -54
- package/script/oas/object/object-types.d.ts +0 -19
- package/script/oas/object/object-types.d.ts.map +0 -1
- package/script/oas/object/object-types.js +0 -59
- package/script/oas/operation/operation-types.d.ts +0 -273
- package/script/oas/operation/operation-types.d.ts.map +0 -1
- package/script/oas/operation/operation-types.js +0 -169
- package/script/oas/pathItem/pathItem-types.d.ts +0 -12
- package/script/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/script/oas/pathItem/pathItem-types.js +0 -48
- package/script/oas/requestBody/requestBody-types.d.ts +0 -10
- package/script/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/script/oas/response/response-types.d.ts +0 -12
- package/script/oas/response/response-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.d.ts +0 -12
- package/script/oas/schema/schema-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.js +0 -55
- package/script/oas/union/union-types.d.ts +0 -34
- package/script/oas/union/union-types.d.ts.map +0 -1
- package/script/oas/union/union-types.js +0 -55
- package/script/run/toV3JsonDocument.d.ts +0 -151
- package/script/run/toV3JsonDocument.d.ts.map +0 -1
- package/script/run/toV3JsonDocument.js +0 -180
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type { ParseContext } from '../../context/ParseContext.js';
|
|
3
|
-
import * as v from 'valibot';
|
|
4
|
-
/**
|
|
5
|
-
* Arguments for parsing OpenAPI schema default values.
|
|
6
|
-
*
|
|
7
|
-
* @template T - The expected type of the default value
|
|
8
|
-
* @template Nullable - Whether the schema allows null values
|
|
9
|
-
* @template Value - The OpenAPI schema object type
|
|
10
|
-
*/
|
|
11
|
-
type ParseDefaultArgs<T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject> = {
|
|
12
|
-
/** The OpenAPI schema object without nullable, example, and enum properties */
|
|
13
|
-
value: Omit<Value, 'nullable' | 'example' | 'enum'>;
|
|
14
|
-
/** Whether the schema allows null values */
|
|
15
|
-
nullable: Nullable;
|
|
16
|
-
/** Valibot schema for validating the default value */
|
|
17
|
-
valibotSchema: v.GenericSchema<T>;
|
|
18
|
-
/** Parse context for error handling */
|
|
19
|
-
context: ParseContext;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Return type for parsed default value data.
|
|
23
|
-
*
|
|
24
|
-
* @template T - The expected type of the default value
|
|
25
|
-
* @template Nullable - Whether the schema allows null values
|
|
26
|
-
* @template Value - The OpenAPI schema object type
|
|
27
|
-
*/
|
|
28
|
-
type ParseDefaultReturn<T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject> = {
|
|
29
|
-
/** The parsed and validated default value */
|
|
30
|
-
default: Nullable extends true ? T | null | undefined : T | undefined;
|
|
31
|
-
/** The schema object with all processed properties removed */
|
|
32
|
-
value: Omit<Value, 'nullable' | 'example' | 'enum' | 'default'>;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Parses and validates OpenAPI schema default values with type safety.
|
|
36
|
-
*
|
|
37
|
-
* This function extracts and validates default values from OpenAPI schema objects,
|
|
38
|
-
* ensuring they conform to the expected type and handling nullable schemas correctly.
|
|
39
|
-
* Invalid default values are removed and logged as warnings through the parse context.
|
|
40
|
-
*
|
|
41
|
-
* The function provides full type safety, with the return type reflecting whether
|
|
42
|
-
* null values are allowed based on the nullable parameter. This ensures that
|
|
43
|
-
* generated code maintains proper type constraints for default values.
|
|
44
|
-
*
|
|
45
|
-
* @template T - The expected type of the default value
|
|
46
|
-
* @template Nullable - Whether the schema allows null as a default
|
|
47
|
-
* @template Value - The OpenAPI schema object type
|
|
48
|
-
*
|
|
49
|
-
* @param args - Parsing configuration
|
|
50
|
-
* @returns Parsed default data with the validated default value and cleaned schema
|
|
51
|
-
*
|
|
52
|
-
* @example Basic string default parsing
|
|
53
|
-
* ```typescript
|
|
54
|
-
* import { parseDefault } from '@skmtc/core/oas/_helpers';
|
|
55
|
-
* import * as v from 'valibot';
|
|
56
|
-
*
|
|
57
|
-
* const result = parseDefault({
|
|
58
|
-
* value: {
|
|
59
|
-
* type: 'string',
|
|
60
|
-
* default: 'hello world',
|
|
61
|
-
* minLength: 5
|
|
62
|
-
* },
|
|
63
|
-
* nullable: false,
|
|
64
|
-
* valibotSchema: v.string(),
|
|
65
|
-
* context: parseContext
|
|
66
|
-
* });
|
|
67
|
-
*
|
|
68
|
-
* console.log(result.default); // 'hello world'
|
|
69
|
-
* console.log(result.value); // { type: 'string', minLength: 5 }
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* @example Nullable default value
|
|
73
|
-
* ```typescript
|
|
74
|
-
* const result = parseDefault({
|
|
75
|
-
* value: {
|
|
76
|
-
* type: 'string',
|
|
77
|
-
* default: null,
|
|
78
|
-
* format: 'email'
|
|
79
|
-
* },
|
|
80
|
-
* nullable: true,
|
|
81
|
-
* valibotSchema: v.string(),
|
|
82
|
-
* context: parseContext
|
|
83
|
-
* });
|
|
84
|
-
*
|
|
85
|
-
* console.log(result.default); // null (valid for nullable schema)
|
|
86
|
-
* // Type: string | null | undefined
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
89
|
-
* @example Number default with constraints
|
|
90
|
-
* ```typescript
|
|
91
|
-
* const result = parseDefault({
|
|
92
|
-
* value: {
|
|
93
|
-
* type: 'number',
|
|
94
|
-
* default: 42,
|
|
95
|
-
* minimum: 0,
|
|
96
|
-
* maximum: 100
|
|
97
|
-
* },
|
|
98
|
-
* nullable: false,
|
|
99
|
-
* valibotSchema: v.number(),
|
|
100
|
-
* context: parseContext
|
|
101
|
-
* });
|
|
102
|
-
*
|
|
103
|
-
* console.log(result.default); // 42
|
|
104
|
-
* console.log(result.value); // { type: 'number', minimum: 0, maximum: 100 }
|
|
105
|
-
* ```
|
|
106
|
-
*
|
|
107
|
-
* @example Invalid default handling
|
|
108
|
-
* ```typescript
|
|
109
|
-
* const result = parseDefault({
|
|
110
|
-
* value: {
|
|
111
|
-
* type: 'boolean',
|
|
112
|
-
* default: 'not a boolean', // Invalid default
|
|
113
|
-
* description: 'A boolean flag'
|
|
114
|
-
* },
|
|
115
|
-
* nullable: false,
|
|
116
|
-
* valibotSchema: v.boolean(),
|
|
117
|
-
* context: parseContext
|
|
118
|
-
* });
|
|
119
|
-
*
|
|
120
|
-
* console.log(result.default); // undefined (invalid default removed)
|
|
121
|
-
* // Context will log a warning about the invalid default
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
124
|
-
* @example Array default value
|
|
125
|
-
* ```typescript
|
|
126
|
-
* const result = parseDefault({
|
|
127
|
-
* value: {
|
|
128
|
-
* type: 'array',
|
|
129
|
-
* items: { type: 'string' },
|
|
130
|
-
* default: ['item1', 'item2']
|
|
131
|
-
* },
|
|
132
|
-
* nullable: false,
|
|
133
|
-
* valibotSchema: v.array(v.string()),
|
|
134
|
-
* context: parseContext
|
|
135
|
-
* });
|
|
136
|
-
*
|
|
137
|
-
* console.log(result.default); // ['item1', 'item2']
|
|
138
|
-
* ```
|
|
139
|
-
*
|
|
140
|
-
* @example Object default value
|
|
141
|
-
* ```typescript
|
|
142
|
-
* const result = parseDefault({
|
|
143
|
-
* value: {
|
|
144
|
-
* type: 'object',
|
|
145
|
-
* properties: {
|
|
146
|
-
* name: { type: 'string' },
|
|
147
|
-
* age: { type: 'number' }
|
|
148
|
-
* },
|
|
149
|
-
* default: { name: 'John', age: 30 }
|
|
150
|
-
* },
|
|
151
|
-
* nullable: false,
|
|
152
|
-
* valibotSchema: v.object({
|
|
153
|
-
* name: v.string(),
|
|
154
|
-
* age: v.number()
|
|
155
|
-
* }),
|
|
156
|
-
* context: parseContext
|
|
157
|
-
* });
|
|
158
|
-
*
|
|
159
|
-
* console.log(result.default); // { name: 'John', age: 30 }
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
export declare const parseDefault: <T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject>({ value, nullable, valibotSchema, context }: ParseDefaultArgs<T, Nullable, Value>) => ParseDefaultReturn<T, Nullable, Value>;
|
|
163
|
-
export {};
|
|
164
|
-
//# sourceMappingURL=parseDefault.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseDefault.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseDefault.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;GAMG;AACH,KAAK,gBAAgB,CACnB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,IAClC;IACF,+EAA+E;IAC/E,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,CAAA;IACnD,4CAA4C;IAC5C,QAAQ,EAAE,QAAQ,CAAA;IAClB,sDAAsD;IACtD,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;IACjC,uCAAuC;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;GAMG;AACH,KAAK,kBAAkB,CACrB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,IAClC;IACF,6CAA6C;IAC7C,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CAAA;IACrE,8DAA8D;IAC9D,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;CAChE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,eAAO,MAAM,YAAY,GACvB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,EACpC,6CAKC,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAG,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAgB9E,CAAA"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
/**
|
|
3
|
-
* Parses and validates OpenAPI schema default values with type safety.
|
|
4
|
-
*
|
|
5
|
-
* This function extracts and validates default values from OpenAPI schema objects,
|
|
6
|
-
* ensuring they conform to the expected type and handling nullable schemas correctly.
|
|
7
|
-
* Invalid default values are removed and logged as warnings through the parse context.
|
|
8
|
-
*
|
|
9
|
-
* The function provides full type safety, with the return type reflecting whether
|
|
10
|
-
* null values are allowed based on the nullable parameter. This ensures that
|
|
11
|
-
* generated code maintains proper type constraints for default values.
|
|
12
|
-
*
|
|
13
|
-
* @template T - The expected type of the default value
|
|
14
|
-
* @template Nullable - Whether the schema allows null as a default
|
|
15
|
-
* @template Value - The OpenAPI schema object type
|
|
16
|
-
*
|
|
17
|
-
* @param args - Parsing configuration
|
|
18
|
-
* @returns Parsed default data with the validated default value and cleaned schema
|
|
19
|
-
*
|
|
20
|
-
* @example Basic string default parsing
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import { parseDefault } from '@skmtc/core/oas/_helpers';
|
|
23
|
-
* import * as v from 'valibot';
|
|
24
|
-
*
|
|
25
|
-
* const result = parseDefault({
|
|
26
|
-
* value: {
|
|
27
|
-
* type: 'string',
|
|
28
|
-
* default: 'hello world',
|
|
29
|
-
* minLength: 5
|
|
30
|
-
* },
|
|
31
|
-
* nullable: false,
|
|
32
|
-
* valibotSchema: v.string(),
|
|
33
|
-
* context: parseContext
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* console.log(result.default); // 'hello world'
|
|
37
|
-
* console.log(result.value); // { type: 'string', minLength: 5 }
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @example Nullable default value
|
|
41
|
-
* ```typescript
|
|
42
|
-
* const result = parseDefault({
|
|
43
|
-
* value: {
|
|
44
|
-
* type: 'string',
|
|
45
|
-
* default: null,
|
|
46
|
-
* format: 'email'
|
|
47
|
-
* },
|
|
48
|
-
* nullable: true,
|
|
49
|
-
* valibotSchema: v.string(),
|
|
50
|
-
* context: parseContext
|
|
51
|
-
* });
|
|
52
|
-
*
|
|
53
|
-
* console.log(result.default); // null (valid for nullable schema)
|
|
54
|
-
* // Type: string | null | undefined
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* @example Number default with constraints
|
|
58
|
-
* ```typescript
|
|
59
|
-
* const result = parseDefault({
|
|
60
|
-
* value: {
|
|
61
|
-
* type: 'number',
|
|
62
|
-
* default: 42,
|
|
63
|
-
* minimum: 0,
|
|
64
|
-
* maximum: 100
|
|
65
|
-
* },
|
|
66
|
-
* nullable: false,
|
|
67
|
-
* valibotSchema: v.number(),
|
|
68
|
-
* context: parseContext
|
|
69
|
-
* });
|
|
70
|
-
*
|
|
71
|
-
* console.log(result.default); // 42
|
|
72
|
-
* console.log(result.value); // { type: 'number', minimum: 0, maximum: 100 }
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* @example Invalid default handling
|
|
76
|
-
* ```typescript
|
|
77
|
-
* const result = parseDefault({
|
|
78
|
-
* value: {
|
|
79
|
-
* type: 'boolean',
|
|
80
|
-
* default: 'not a boolean', // Invalid default
|
|
81
|
-
* description: 'A boolean flag'
|
|
82
|
-
* },
|
|
83
|
-
* nullable: false,
|
|
84
|
-
* valibotSchema: v.boolean(),
|
|
85
|
-
* context: parseContext
|
|
86
|
-
* });
|
|
87
|
-
*
|
|
88
|
-
* console.log(result.default); // undefined (invalid default removed)
|
|
89
|
-
* // Context will log a warning about the invalid default
|
|
90
|
-
* ```
|
|
91
|
-
*
|
|
92
|
-
* @example Array default value
|
|
93
|
-
* ```typescript
|
|
94
|
-
* const result = parseDefault({
|
|
95
|
-
* value: {
|
|
96
|
-
* type: 'array',
|
|
97
|
-
* items: { type: 'string' },
|
|
98
|
-
* default: ['item1', 'item2']
|
|
99
|
-
* },
|
|
100
|
-
* nullable: false,
|
|
101
|
-
* valibotSchema: v.array(v.string()),
|
|
102
|
-
* context: parseContext
|
|
103
|
-
* });
|
|
104
|
-
*
|
|
105
|
-
* console.log(result.default); // ['item1', 'item2']
|
|
106
|
-
* ```
|
|
107
|
-
*
|
|
108
|
-
* @example Object default value
|
|
109
|
-
* ```typescript
|
|
110
|
-
* const result = parseDefault({
|
|
111
|
-
* value: {
|
|
112
|
-
* type: 'object',
|
|
113
|
-
* properties: {
|
|
114
|
-
* name: { type: 'string' },
|
|
115
|
-
* age: { type: 'number' }
|
|
116
|
-
* },
|
|
117
|
-
* default: { name: 'John', age: 30 }
|
|
118
|
-
* },
|
|
119
|
-
* nullable: false,
|
|
120
|
-
* valibotSchema: v.object({
|
|
121
|
-
* name: v.string(),
|
|
122
|
-
* age: v.number()
|
|
123
|
-
* }),
|
|
124
|
-
* context: parseContext
|
|
125
|
-
* });
|
|
126
|
-
*
|
|
127
|
-
* console.log(result.default); // { name: 'John', age: 30 }
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
export const parseDefault = ({ value, nullable, valibotSchema, context }) => {
|
|
131
|
-
const { default: defaultValue, ...rest } = value;
|
|
132
|
-
const parsedDefault = context.provisionalParse({
|
|
133
|
-
key: 'default',
|
|
134
|
-
value: defaultValue,
|
|
135
|
-
parent: value,
|
|
136
|
-
schema: nullable === true ? v.nullable(valibotSchema) : valibotSchema,
|
|
137
|
-
toMessage: value => `Removed invalid default. Expected ${valibotSchema.type}, got: ${value}`,
|
|
138
|
-
type: 'INVALID_DEFAULT'
|
|
139
|
-
});
|
|
140
|
-
return {
|
|
141
|
-
default: parsedDefault,
|
|
142
|
-
value: rest
|
|
143
|
-
};
|
|
144
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type { ParseContext } from '../../context/ParseContext.js';
|
|
3
|
-
import * as v from 'valibot';
|
|
4
|
-
/**
|
|
5
|
-
* Arguments for parsing OpenAPI schema examples.
|
|
6
|
-
*
|
|
7
|
-
* @template T - The expected type of the example value
|
|
8
|
-
* @template Nullable - Whether the schema allows null values
|
|
9
|
-
* @template Value - The OpenAPI schema object type
|
|
10
|
-
*/
|
|
11
|
-
type ParseExampleArgs<T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject> = {
|
|
12
|
-
/** The OpenAPI schema object without nullable property */
|
|
13
|
-
value: Omit<Value, 'nullable'>;
|
|
14
|
-
/** Whether the schema allows null values */
|
|
15
|
-
nullable: Nullable;
|
|
16
|
-
/** Valibot schema for validating the example */
|
|
17
|
-
valibotSchema: v.GenericSchema<T>;
|
|
18
|
-
/** Parse context for error handling */
|
|
19
|
-
context: ParseContext;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Return type for parsed example data.
|
|
23
|
-
*
|
|
24
|
-
* @template T - The expected type of the example value
|
|
25
|
-
* @template Nullable - Whether the schema allows null values
|
|
26
|
-
* @template Value - The OpenAPI schema object type
|
|
27
|
-
*/
|
|
28
|
-
type ParseExampleReturn<T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject> = {
|
|
29
|
-
/** The parsed and validated example value */
|
|
30
|
-
example: Nullable extends true ? T | null | undefined : T | undefined;
|
|
31
|
-
/** The schema object without example and nullable properties */
|
|
32
|
-
value: Omit<Value, 'nullable' | 'example'>;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Parses and validates OpenAPI schema examples with type safety.
|
|
36
|
-
*
|
|
37
|
-
* This function extracts and validates example values from OpenAPI schema objects,
|
|
38
|
-
* ensuring they conform to the expected type and handling nullable schemas correctly.
|
|
39
|
-
* Invalid examples are removed and logged as warnings through the parse context.
|
|
40
|
-
*
|
|
41
|
-
* The function provides full type safety, with the return type reflecting whether
|
|
42
|
-
* null values are allowed based on the nullable parameter.
|
|
43
|
-
*
|
|
44
|
-
* @template T - The expected type of the example value
|
|
45
|
-
* @template Nullable - Whether the schema allows null values
|
|
46
|
-
* @template Value - The OpenAPI schema object type
|
|
47
|
-
*
|
|
48
|
-
* @param args - Parsing configuration
|
|
49
|
-
* @returns Parsed example data with the validated example and cleaned schema
|
|
50
|
-
*
|
|
51
|
-
* @example Basic string example parsing
|
|
52
|
-
* ```typescript
|
|
53
|
-
* import { parseExample } from '@skmtc/core/oas/_helpers';
|
|
54
|
-
* import * as v from 'valibot';
|
|
55
|
-
*
|
|
56
|
-
* const result = parseExample({
|
|
57
|
-
* value: {
|
|
58
|
-
* type: 'string',
|
|
59
|
-
* example: 'hello world',
|
|
60
|
-
* format: 'text'
|
|
61
|
-
* },
|
|
62
|
-
* nullable: false,
|
|
63
|
-
* valibotSchema: v.string(),
|
|
64
|
-
* context: parseContext
|
|
65
|
-
* });
|
|
66
|
-
*
|
|
67
|
-
* console.log(result.example); // 'hello world'
|
|
68
|
-
* console.log(result.value); // { type: 'string', format: 'text' }
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* @example Nullable schema example
|
|
72
|
-
* ```typescript
|
|
73
|
-
* const result = parseExample({
|
|
74
|
-
* value: {
|
|
75
|
-
* type: 'string',
|
|
76
|
-
* example: null,
|
|
77
|
-
* minLength: 1
|
|
78
|
-
* },
|
|
79
|
-
* nullable: true,
|
|
80
|
-
* valibotSchema: v.string(),
|
|
81
|
-
* context: parseContext
|
|
82
|
-
* });
|
|
83
|
-
*
|
|
84
|
-
* console.log(result.example); // null (valid for nullable schema)
|
|
85
|
-
* // Type: string | null | undefined
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* @example Invalid example handling
|
|
89
|
-
* ```typescript
|
|
90
|
-
* const result = parseExample({
|
|
91
|
-
* value: {
|
|
92
|
-
* type: 'number',
|
|
93
|
-
* example: 'not a number', // Invalid example
|
|
94
|
-
* minimum: 0
|
|
95
|
-
* },
|
|
96
|
-
* nullable: false,
|
|
97
|
-
* valibotSchema: v.number(),
|
|
98
|
-
* context: parseContext
|
|
99
|
-
* });
|
|
100
|
-
*
|
|
101
|
-
* console.log(result.example); // undefined (invalid example removed)
|
|
102
|
-
* // Context will log a warning about the invalid example
|
|
103
|
-
* ```
|
|
104
|
-
*
|
|
105
|
-
* @example Array example parsing
|
|
106
|
-
* ```typescript
|
|
107
|
-
* const result = parseExample({
|
|
108
|
-
* value: {
|
|
109
|
-
* type: 'array',
|
|
110
|
-
* items: { type: 'string' },
|
|
111
|
-
* example: ['item1', 'item2', 'item3']
|
|
112
|
-
* },
|
|
113
|
-
* nullable: false,
|
|
114
|
-
* valibotSchema: v.array(v.string()),
|
|
115
|
-
* context: parseContext
|
|
116
|
-
* });
|
|
117
|
-
*
|
|
118
|
-
* console.log(result.example); // ['item1', 'item2', 'item3']
|
|
119
|
-
* ```
|
|
120
|
-
*/
|
|
121
|
-
export declare const parseExample: <T, Nullable extends boolean | undefined, Value extends OpenAPIV3.SchemaObject>({ value, nullable, valibotSchema, context }: ParseExampleArgs<T, Nullable, Value>) => ParseExampleReturn<T, Nullable, Value>;
|
|
122
|
-
export {};
|
|
123
|
-
//# sourceMappingURL=parseExample.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseExample.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;GAMG;AACH,KAAK,gBAAgB,CACnB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,IAClC;IACF,0DAA0D;IAC1D,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;IAC9B,4CAA4C;IAC5C,QAAQ,EAAE,QAAQ,CAAA;IAClB,gDAAgD;IAChD,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAA;IACjC,uCAAuC;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;GAMG;AACH,KAAK,kBAAkB,CACrB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,IAClC;IACF,6CAA6C;IAC7C,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CAAA;IACrE,gEAAgE;IAChE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAAC,CAAA;CAC3C,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,eAAO,MAAM,YAAY,GACvB,CAAC,EACD,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,KAAK,SAAS,SAAS,CAAC,YAAY,EACpC,6CAKC,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAG,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAgB9E,CAAA"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
/**
|
|
3
|
-
* Parses and validates OpenAPI schema examples with type safety.
|
|
4
|
-
*
|
|
5
|
-
* This function extracts and validates example values from OpenAPI schema objects,
|
|
6
|
-
* ensuring they conform to the expected type and handling nullable schemas correctly.
|
|
7
|
-
* Invalid examples are removed and logged as warnings through the parse context.
|
|
8
|
-
*
|
|
9
|
-
* The function provides full type safety, with the return type reflecting whether
|
|
10
|
-
* null values are allowed based on the nullable parameter.
|
|
11
|
-
*
|
|
12
|
-
* @template T - The expected type of the example value
|
|
13
|
-
* @template Nullable - Whether the schema allows null values
|
|
14
|
-
* @template Value - The OpenAPI schema object type
|
|
15
|
-
*
|
|
16
|
-
* @param args - Parsing configuration
|
|
17
|
-
* @returns Parsed example data with the validated example and cleaned schema
|
|
18
|
-
*
|
|
19
|
-
* @example Basic string example parsing
|
|
20
|
-
* ```typescript
|
|
21
|
-
* import { parseExample } from '@skmtc/core/oas/_helpers';
|
|
22
|
-
* import * as v from 'valibot';
|
|
23
|
-
*
|
|
24
|
-
* const result = parseExample({
|
|
25
|
-
* value: {
|
|
26
|
-
* type: 'string',
|
|
27
|
-
* example: 'hello world',
|
|
28
|
-
* format: 'text'
|
|
29
|
-
* },
|
|
30
|
-
* nullable: false,
|
|
31
|
-
* valibotSchema: v.string(),
|
|
32
|
-
* context: parseContext
|
|
33
|
-
* });
|
|
34
|
-
*
|
|
35
|
-
* console.log(result.example); // 'hello world'
|
|
36
|
-
* console.log(result.value); // { type: 'string', format: 'text' }
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @example Nullable schema example
|
|
40
|
-
* ```typescript
|
|
41
|
-
* const result = parseExample({
|
|
42
|
-
* value: {
|
|
43
|
-
* type: 'string',
|
|
44
|
-
* example: null,
|
|
45
|
-
* minLength: 1
|
|
46
|
-
* },
|
|
47
|
-
* nullable: true,
|
|
48
|
-
* valibotSchema: v.string(),
|
|
49
|
-
* context: parseContext
|
|
50
|
-
* });
|
|
51
|
-
*
|
|
52
|
-
* console.log(result.example); // null (valid for nullable schema)
|
|
53
|
-
* // Type: string | null | undefined
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* @example Invalid example handling
|
|
57
|
-
* ```typescript
|
|
58
|
-
* const result = parseExample({
|
|
59
|
-
* value: {
|
|
60
|
-
* type: 'number',
|
|
61
|
-
* example: 'not a number', // Invalid example
|
|
62
|
-
* minimum: 0
|
|
63
|
-
* },
|
|
64
|
-
* nullable: false,
|
|
65
|
-
* valibotSchema: v.number(),
|
|
66
|
-
* context: parseContext
|
|
67
|
-
* });
|
|
68
|
-
*
|
|
69
|
-
* console.log(result.example); // undefined (invalid example removed)
|
|
70
|
-
* // Context will log a warning about the invalid example
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* @example Array example parsing
|
|
74
|
-
* ```typescript
|
|
75
|
-
* const result = parseExample({
|
|
76
|
-
* value: {
|
|
77
|
-
* type: 'array',
|
|
78
|
-
* items: { type: 'string' },
|
|
79
|
-
* example: ['item1', 'item2', 'item3']
|
|
80
|
-
* },
|
|
81
|
-
* nullable: false,
|
|
82
|
-
* valibotSchema: v.array(v.string()),
|
|
83
|
-
* context: parseContext
|
|
84
|
-
* });
|
|
85
|
-
*
|
|
86
|
-
* console.log(result.example); // ['item1', 'item2', 'item3']
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
export const parseExample = ({ value, nullable, valibotSchema, context }) => {
|
|
90
|
-
const { example, ...rest } = value;
|
|
91
|
-
const parsedExample = context.provisionalParse({
|
|
92
|
-
key: 'example',
|
|
93
|
-
value: example,
|
|
94
|
-
parent: value,
|
|
95
|
-
schema: nullable === true ? v.nullable(valibotSchema) : valibotSchema,
|
|
96
|
-
toMessage: value => `Removed invalid example. Expected ${valibotSchema.type}, got: ${value}`,
|
|
97
|
-
type: 'INVALID_EXAMPLE'
|
|
98
|
-
});
|
|
99
|
-
return {
|
|
100
|
-
example: parsedExample,
|
|
101
|
-
value: rest
|
|
102
|
-
};
|
|
103
|
-
};
|