@skmtc/core 0.0.926 → 0.0.930
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 +35 -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 +35 -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
|
@@ -38,11 +38,10 @@ const Array_js_1 = require("./Array.js");
|
|
|
38
38
|
const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
|
|
39
39
|
const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toSpecificationExtensionsV3.js");
|
|
40
40
|
const parseNullable_js_1 = require("../_helpers/parseNullable.js");
|
|
41
|
-
const parseExample_js_1 = require("../_helpers/parseExample.js");
|
|
42
41
|
const parseEnum_js_1 = require("../_helpers/parseEnum.js");
|
|
43
42
|
const v = __importStar(require("valibot"));
|
|
44
43
|
const array_types_js_1 = require("./array-types.js");
|
|
45
|
-
const
|
|
44
|
+
const tracer_js_1 = require("../../helpers/tracer.js");
|
|
46
45
|
/**
|
|
47
46
|
* Transforms an OpenAPI v3 array schema object into an internal OAS array representation.
|
|
48
47
|
*
|
|
@@ -107,23 +106,28 @@ const toArray = ({ value, context }) => {
|
|
|
107
106
|
value,
|
|
108
107
|
context
|
|
109
108
|
});
|
|
110
|
-
const { example,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
const { example: unparsedExample, ...valueWithoutExample } = valueWithoutNullable;
|
|
110
|
+
const example = parseExample({
|
|
111
|
+
example: unparsedExample,
|
|
112
|
+
context,
|
|
113
|
+
parent: valueWithoutNullable,
|
|
114
|
+
nullable
|
|
115
115
|
});
|
|
116
|
-
const { enum:
|
|
117
|
-
|
|
116
|
+
const { enum: unparsedEnums, ...valueWithoutEnums } = valueWithoutExample;
|
|
117
|
+
const enums = (0, parseEnum_js_1.parseEnum)({
|
|
118
|
+
value: unparsedEnums,
|
|
118
119
|
nullable,
|
|
119
|
-
|
|
120
|
-
context
|
|
120
|
+
parent: valueWithoutExample,
|
|
121
|
+
context,
|
|
122
|
+
check: Array.isArray,
|
|
123
|
+
toMessage: item => `Removed invalid enum. Expected "array", got: ${item}`
|
|
121
124
|
});
|
|
122
|
-
const { default:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
const { default: unparsedDefaultValue, ...valueWithoutDefault } = valueWithoutEnums;
|
|
126
|
+
const defaultValue = parseDefault({
|
|
127
|
+
defaultValue: unparsedDefaultValue,
|
|
128
|
+
context,
|
|
129
|
+
parent: valueWithoutEnums,
|
|
130
|
+
nullable
|
|
127
131
|
});
|
|
128
132
|
return (0, exports.toParsedArray)({
|
|
129
133
|
context,
|
|
@@ -135,64 +139,14 @@ const toArray = ({ value, context }) => {
|
|
|
135
139
|
});
|
|
136
140
|
};
|
|
137
141
|
exports.toArray = toArray;
|
|
138
|
-
/**
|
|
139
|
-
* Creates an OAS array instance from pre-parsed array schema components.
|
|
140
|
-
*
|
|
141
|
-
* This function is the final step in the array transformation pipeline, taking
|
|
142
|
-
* already-parsed nullable, example, enum, and default values and combining them
|
|
143
|
-
* with the remaining array properties to create the complete OasArray instance.
|
|
144
|
-
*
|
|
145
|
-
* The function handles type-safe nullable parsing, items schema resolution,
|
|
146
|
-
* and specification extension processing. It uses Valibot for schema validation
|
|
147
|
-
* and maintains proper type relationships between nullable flags and value types.
|
|
148
|
-
*
|
|
149
|
-
* @template Nullable - Boolean type indicating if the array can be null
|
|
150
|
-
* @param args - Pre-parsed array components
|
|
151
|
-
* @param args.value - OpenAPI array object without parsed fields
|
|
152
|
-
* @param args.context - Parse context for tracing and utilities
|
|
153
|
-
* @param args.nullable - Parsed nullable flag
|
|
154
|
-
* @param args.example - Parsed example value (type-safe with nullable)
|
|
155
|
-
* @param args.enums - Parsed enumeration constraints (type-safe with nullable)
|
|
156
|
-
* @param args.defaultValue - Parsed default value (type-safe with nullable)
|
|
157
|
-
* @returns Complete OAS array instance with all properties
|
|
158
|
-
*
|
|
159
|
-
* @example Type-safe nullable array
|
|
160
|
-
* ```typescript
|
|
161
|
-
* const nullableArray = toParsedArray({
|
|
162
|
-
* context: parseContext,
|
|
163
|
-
* nullable: true,
|
|
164
|
-
* example: [1, 2, 3], // Can be null due to nullable: true
|
|
165
|
-
* enums: [[1], [2], null], // Null allowed in enums
|
|
166
|
-
* defaultValue: null,
|
|
167
|
-
* value: {
|
|
168
|
-
* type: 'array',
|
|
169
|
-
* items: { type: 'number' },
|
|
170
|
-
* maxItems: 5
|
|
171
|
-
* }
|
|
172
|
-
* });
|
|
173
|
-
* ```
|
|
174
|
-
*
|
|
175
|
-
* @example Non-nullable array
|
|
176
|
-
* ```typescript
|
|
177
|
-
* const regularArray = toParsedArray({
|
|
178
|
-
* context: parseContext,
|
|
179
|
-
* nullable: false,
|
|
180
|
-
* example: ['a', 'b'], // Cannot be null
|
|
181
|
-
* enums: [['x'], ['y']], // No null values allowed
|
|
182
|
-
* defaultValue: [],
|
|
183
|
-
* value: {
|
|
184
|
-
* type: 'array',
|
|
185
|
-
* items: { type: 'string' }
|
|
186
|
-
* }
|
|
187
|
-
* });
|
|
188
|
-
* ```
|
|
189
|
-
*/
|
|
190
142
|
const toParsedArray = ({ context, nullable, example, enums, defaultValue, value }) => {
|
|
191
143
|
// We only want parse non-items fields here since items is handled below
|
|
192
144
|
const { items, ...rest } = value;
|
|
193
145
|
// Parse the object without items field
|
|
194
|
-
|
|
195
|
-
|
|
146
|
+
if (!v.is(array_types_js_1.oasArrayDataWithoutItems, rest)) {
|
|
147
|
+
v.parse(array_types_js_1.oasArrayDataWithoutItems, rest);
|
|
148
|
+
}
|
|
149
|
+
const { type: _type, title, description, uniqueItems, maxItems, minItems, readOnly, writeOnly, deprecated, ...skipped } = rest;
|
|
196
150
|
const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
|
|
197
151
|
skipped,
|
|
198
152
|
parent: value,
|
|
@@ -208,13 +162,54 @@ const toParsedArray = ({ context, nullable, example, enums, defaultValue, value
|
|
|
208
162
|
description,
|
|
209
163
|
nullable,
|
|
210
164
|
defaultValue,
|
|
211
|
-
items: context.
|
|
165
|
+
items: (0, tracer_js_1.tracer)(context.stackTrail, 'items', () => (0, toSchemasV3_js_1.toSchemaV3)({ schema: items, context })),
|
|
212
166
|
extensionFields,
|
|
213
167
|
example,
|
|
214
168
|
uniqueItems,
|
|
215
169
|
maxItems,
|
|
216
170
|
minItems,
|
|
217
|
-
enums
|
|
171
|
+
enums,
|
|
172
|
+
readOnly,
|
|
173
|
+
writeOnly,
|
|
174
|
+
deprecated
|
|
218
175
|
});
|
|
219
176
|
};
|
|
220
177
|
exports.toParsedArray = toParsedArray;
|
|
178
|
+
const parseExample = ({ example, context, parent, nullable }) => {
|
|
179
|
+
if (example === undefined) {
|
|
180
|
+
return undefined;
|
|
181
|
+
}
|
|
182
|
+
if (nullable && example === null) {
|
|
183
|
+
return example;
|
|
184
|
+
}
|
|
185
|
+
if (!Array.isArray(example)) {
|
|
186
|
+
context.logIssue({
|
|
187
|
+
key: 'example',
|
|
188
|
+
level: 'warning',
|
|
189
|
+
message: `Removed invalid example. Expected "array", got: ${example}`,
|
|
190
|
+
parent,
|
|
191
|
+
type: 'INVALID_EXAMPLE'
|
|
192
|
+
});
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
return example;
|
|
196
|
+
};
|
|
197
|
+
const parseDefault = ({ defaultValue, context, parent, nullable }) => {
|
|
198
|
+
if (defaultValue === undefined) {
|
|
199
|
+
return undefined;
|
|
200
|
+
}
|
|
201
|
+
if (nullable && defaultValue === null) {
|
|
202
|
+
return defaultValue;
|
|
203
|
+
}
|
|
204
|
+
if (!Array.isArray(defaultValue)) {
|
|
205
|
+
context.logIssue({
|
|
206
|
+
key: 'default',
|
|
207
|
+
level: 'warning',
|
|
208
|
+
message: `Invalid default: ${defaultValue}`,
|
|
209
|
+
parent,
|
|
210
|
+
type: 'INVALID_DEFAULT'
|
|
211
|
+
});
|
|
212
|
+
return undefined;
|
|
213
|
+
}
|
|
214
|
+
return defaultValue;
|
|
215
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
2
|
import type { OasRef } from '../ref/Ref.js';
|
|
4
3
|
import type { ToJsonSchemaOptions } from '../schema/Schema.js';
|
|
@@ -22,139 +21,13 @@ export type BooleanFields<Nullable extends boolean | undefined> = {
|
|
|
22
21
|
enums?: Nullable extends true ? (boolean | null)[] | undefined : boolean[] | undefined;
|
|
23
22
|
/** Default value for the boolean (null allowed if Nullable is true) */
|
|
24
23
|
default?: Nullable extends true ? boolean | null | undefined : boolean | undefined;
|
|
24
|
+
/** Whether the boolean is read-only */
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
/** Whether the boolean is write-only */
|
|
27
|
+
writeOnly?: boolean;
|
|
28
|
+
/** Whether the boolean is deprecated */
|
|
29
|
+
deprecated?: boolean;
|
|
25
30
|
};
|
|
26
|
-
/**
|
|
27
|
-
* Represents a boolean schema in the OpenAPI Specification.
|
|
28
|
-
*
|
|
29
|
-
* The `OasBoolean` class handles boolean data types in OpenAPI schemas, supporting
|
|
30
|
-
* both simple true/false values and more complex boolean schemas with constraints,
|
|
31
|
-
* enumerations, and nullable types. This class provides type-safe boolean handling
|
|
32
|
-
* with optional null value support through generic typing.
|
|
33
|
-
*
|
|
34
|
-
* ## Key Features
|
|
35
|
-
*
|
|
36
|
-
* - **Type Safety**: Generic nullable type support with proper TypeScript inference
|
|
37
|
-
* - **Enum Support**: Constrain boolean values to specific true/false combinations
|
|
38
|
-
* - **Null Handling**: Optional null value support for nullable boolean types
|
|
39
|
-
* - **Validation**: Default values and example validation
|
|
40
|
-
* - **JSON Schema**: Converts to standard JSON Schema format for validation
|
|
41
|
-
* - **Documentation**: Rich metadata support for API documentation
|
|
42
|
-
*
|
|
43
|
-
* @template Nullable - Whether the boolean value itself can be null
|
|
44
|
-
*
|
|
45
|
-
* @example Basic boolean schema
|
|
46
|
-
* ```typescript
|
|
47
|
-
* import { OasBoolean } from '@skmtc/core';
|
|
48
|
-
*
|
|
49
|
-
* const isActiveSchema = new OasBoolean({
|
|
50
|
-
* title: 'Active Status',
|
|
51
|
-
* description: 'Whether the user account is active',
|
|
52
|
-
* default: true,
|
|
53
|
-
* example: true
|
|
54
|
-
* });
|
|
55
|
-
*
|
|
56
|
-
* // This represents: boolean with default true
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @example Nullable boolean schema
|
|
60
|
-
* ```typescript
|
|
61
|
-
* const nullableFlag = new OasBoolean<true>({
|
|
62
|
-
* title: 'Optional Flag',
|
|
63
|
-
* description: 'An optional boolean flag that can be null',
|
|
64
|
-
* nullable: true,
|
|
65
|
-
* default: null,
|
|
66
|
-
* example: true
|
|
67
|
-
* });
|
|
68
|
-
*
|
|
69
|
-
* // This represents: boolean | null
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* @example Boolean with enum constraints
|
|
73
|
-
* ```typescript
|
|
74
|
-
* const strictBoolean = new OasBoolean({
|
|
75
|
-
* title: 'Confirmation',
|
|
76
|
-
* description: 'Must explicitly be true to confirm action',
|
|
77
|
-
* enums: [true], // Only true is allowed
|
|
78
|
-
* example: true
|
|
79
|
-
* });
|
|
80
|
-
*
|
|
81
|
-
* // This only accepts true, effectively making it required
|
|
82
|
-
* ```
|
|
83
|
-
*
|
|
84
|
-
* @example Boolean with null in enum
|
|
85
|
-
* ```typescript
|
|
86
|
-
* const triStateBoolean = new OasBoolean<true>({
|
|
87
|
-
* title: 'Approval Status',
|
|
88
|
-
* description: 'Approval can be true (approved), false (denied), or null (pending)',
|
|
89
|
-
* nullable: true,
|
|
90
|
-
* enums: [true, false, null],
|
|
91
|
-
* default: null,
|
|
92
|
-
* example: null
|
|
93
|
-
* });
|
|
94
|
-
*
|
|
95
|
-
* // This represents: true | false | null (tri-state logic)
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* @example Feature flag schema
|
|
99
|
-
* ```typescript
|
|
100
|
-
* const featureFlag = new OasBoolean({
|
|
101
|
-
* title: 'Feature Enabled',
|
|
102
|
-
* description: 'Whether the new feature is enabled for this user',
|
|
103
|
-
* default: false,
|
|
104
|
-
* example: false
|
|
105
|
-
* });
|
|
106
|
-
*
|
|
107
|
-
* // Used in configuration objects
|
|
108
|
-
* const userConfig = new OasObject({
|
|
109
|
-
* properties: {
|
|
110
|
-
* darkMode: featureFlag,
|
|
111
|
-
* notifications: featureFlag,
|
|
112
|
-
* betaFeatures: featureFlag
|
|
113
|
-
* }
|
|
114
|
-
* });
|
|
115
|
-
* ```
|
|
116
|
-
*
|
|
117
|
-
* @example Consent and agreement booleans
|
|
118
|
-
* ```typescript
|
|
119
|
-
* const consentSchema = new OasBoolean({
|
|
120
|
-
* title: 'Terms Accepted',
|
|
121
|
-
* description: 'User has accepted the terms and conditions',
|
|
122
|
-
* enums: [true], // Must be true to be valid
|
|
123
|
-
* example: true
|
|
124
|
-
* });
|
|
125
|
-
*
|
|
126
|
-
* const privacyConsent = new OasBoolean({
|
|
127
|
-
* title: 'Privacy Policy Accepted',
|
|
128
|
-
* description: 'User has accepted the privacy policy',
|
|
129
|
-
* default: false,
|
|
130
|
-
* example: true
|
|
131
|
-
* });
|
|
132
|
-
*
|
|
133
|
-
* // Used in registration forms where consent is required
|
|
134
|
-
* ```
|
|
135
|
-
*
|
|
136
|
-
* @example Optional settings with nullable booleans
|
|
137
|
-
* ```typescript
|
|
138
|
-
* const userPreferences = new OasObject({
|
|
139
|
-
* properties: {
|
|
140
|
-
* emailNotifications: new OasBoolean<true>({
|
|
141
|
-
* title: 'Email Notifications',
|
|
142
|
-
* description: 'Enable email notifications (null means use default)',
|
|
143
|
-
* nullable: true,
|
|
144
|
-
* default: null
|
|
145
|
-
* }),
|
|
146
|
-
* smsNotifications: new OasBoolean<true>({
|
|
147
|
-
* title: 'SMS Notifications',
|
|
148
|
-
* description: 'Enable SMS notifications (null means not set)',
|
|
149
|
-
* nullable: true,
|
|
150
|
-
* default: null
|
|
151
|
-
* })
|
|
152
|
-
* }
|
|
153
|
-
* });
|
|
154
|
-
*
|
|
155
|
-
* // Allows: { emailNotifications: true, smsNotifications: null }
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
31
|
export declare class OasBoolean<Nullable extends boolean | undefined = boolean | undefined> {
|
|
159
32
|
/**
|
|
160
33
|
* Object is part the 'schema' set which is used
|
|
@@ -191,6 +64,12 @@ export declare class OasBoolean<Nullable extends boolean | undefined = boolean |
|
|
|
191
64
|
* The default value of the boolean.
|
|
192
65
|
*/
|
|
193
66
|
default: Nullable extends true ? boolean | null | undefined : boolean | undefined;
|
|
67
|
+
/** Whether the boolean is read-only */
|
|
68
|
+
readOnly: boolean | undefined;
|
|
69
|
+
/** Whether the boolean is write-only */
|
|
70
|
+
writeOnly: boolean | undefined;
|
|
71
|
+
/** Whether the boolean is deprecated */
|
|
72
|
+
deprecated: boolean | undefined;
|
|
194
73
|
/**
|
|
195
74
|
* Creates a new OasBoolean instance.
|
|
196
75
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/Boolean.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/Boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAChE,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,uEAAuE;IACvE,OAAO,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IAClF,oFAAoF;IACpF,KAAK,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACtF,uEAAuE;IACvE,OAAO,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IAClF,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AACD,qBAAa,UAAU,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS;IAChF;;;OAGG;IACH,OAAO,EAAG,QAAQ,CAAS;IAC3B;;OAEG;IACH,IAAI,EAAG,SAAS,CAAS;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAA;IAE9B,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACpD;;OAEG;IACH,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IAEjF;;OAEG;IACH,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACrF;;OAEG;IACH,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IAEjF,uCAAuC;IACvC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,wCAAwC;IACxC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,wCAAwC;IACxC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B;;;;OAIG;gBACS,MAAM,GAAE,aAAa,CAAC,QAAQ,CAAM;IAahD;;;;OAIG;IACH,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC;;;;OAIG;IACH,OAAO,IAAI,UAAU,CAAC,QAAQ,CAAC;IAI/B;;;;OAIG;IACH,WAAW,IAAI,UAAU,CAAC,QAAQ,CAAC;IAInC;;;;;OAKG;IAEH,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC,oBAAoB;CAc5E"}
|
|
@@ -1,139 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OasBoolean = void 0;
|
|
4
|
-
require("../../_dnt.polyfills.js");
|
|
5
|
-
/**
|
|
6
|
-
* Represents a boolean schema in the OpenAPI Specification.
|
|
7
|
-
*
|
|
8
|
-
* The `OasBoolean` class handles boolean data types in OpenAPI schemas, supporting
|
|
9
|
-
* both simple true/false values and more complex boolean schemas with constraints,
|
|
10
|
-
* enumerations, and nullable types. This class provides type-safe boolean handling
|
|
11
|
-
* with optional null value support through generic typing.
|
|
12
|
-
*
|
|
13
|
-
* ## Key Features
|
|
14
|
-
*
|
|
15
|
-
* - **Type Safety**: Generic nullable type support with proper TypeScript inference
|
|
16
|
-
* - **Enum Support**: Constrain boolean values to specific true/false combinations
|
|
17
|
-
* - **Null Handling**: Optional null value support for nullable boolean types
|
|
18
|
-
* - **Validation**: Default values and example validation
|
|
19
|
-
* - **JSON Schema**: Converts to standard JSON Schema format for validation
|
|
20
|
-
* - **Documentation**: Rich metadata support for API documentation
|
|
21
|
-
*
|
|
22
|
-
* @template Nullable - Whether the boolean value itself can be null
|
|
23
|
-
*
|
|
24
|
-
* @example Basic boolean schema
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import { OasBoolean } from '@skmtc/core';
|
|
27
|
-
*
|
|
28
|
-
* const isActiveSchema = new OasBoolean({
|
|
29
|
-
* title: 'Active Status',
|
|
30
|
-
* description: 'Whether the user account is active',
|
|
31
|
-
* default: true,
|
|
32
|
-
* example: true
|
|
33
|
-
* });
|
|
34
|
-
*
|
|
35
|
-
* // This represents: boolean with default true
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @example Nullable boolean schema
|
|
39
|
-
* ```typescript
|
|
40
|
-
* const nullableFlag = new OasBoolean<true>({
|
|
41
|
-
* title: 'Optional Flag',
|
|
42
|
-
* description: 'An optional boolean flag that can be null',
|
|
43
|
-
* nullable: true,
|
|
44
|
-
* default: null,
|
|
45
|
-
* example: true
|
|
46
|
-
* });
|
|
47
|
-
*
|
|
48
|
-
* // This represents: boolean | null
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @example Boolean with enum constraints
|
|
52
|
-
* ```typescript
|
|
53
|
-
* const strictBoolean = new OasBoolean({
|
|
54
|
-
* title: 'Confirmation',
|
|
55
|
-
* description: 'Must explicitly be true to confirm action',
|
|
56
|
-
* enums: [true], // Only true is allowed
|
|
57
|
-
* example: true
|
|
58
|
-
* });
|
|
59
|
-
*
|
|
60
|
-
* // This only accepts true, effectively making it required
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @example Boolean with null in enum
|
|
64
|
-
* ```typescript
|
|
65
|
-
* const triStateBoolean = new OasBoolean<true>({
|
|
66
|
-
* title: 'Approval Status',
|
|
67
|
-
* description: 'Approval can be true (approved), false (denied), or null (pending)',
|
|
68
|
-
* nullable: true,
|
|
69
|
-
* enums: [true, false, null],
|
|
70
|
-
* default: null,
|
|
71
|
-
* example: null
|
|
72
|
-
* });
|
|
73
|
-
*
|
|
74
|
-
* // This represents: true | false | null (tri-state logic)
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @example Feature flag schema
|
|
78
|
-
* ```typescript
|
|
79
|
-
* const featureFlag = new OasBoolean({
|
|
80
|
-
* title: 'Feature Enabled',
|
|
81
|
-
* description: 'Whether the new feature is enabled for this user',
|
|
82
|
-
* default: false,
|
|
83
|
-
* example: false
|
|
84
|
-
* });
|
|
85
|
-
*
|
|
86
|
-
* // Used in configuration objects
|
|
87
|
-
* const userConfig = new OasObject({
|
|
88
|
-
* properties: {
|
|
89
|
-
* darkMode: featureFlag,
|
|
90
|
-
* notifications: featureFlag,
|
|
91
|
-
* betaFeatures: featureFlag
|
|
92
|
-
* }
|
|
93
|
-
* });
|
|
94
|
-
* ```
|
|
95
|
-
*
|
|
96
|
-
* @example Consent and agreement booleans
|
|
97
|
-
* ```typescript
|
|
98
|
-
* const consentSchema = new OasBoolean({
|
|
99
|
-
* title: 'Terms Accepted',
|
|
100
|
-
* description: 'User has accepted the terms and conditions',
|
|
101
|
-
* enums: [true], // Must be true to be valid
|
|
102
|
-
* example: true
|
|
103
|
-
* });
|
|
104
|
-
*
|
|
105
|
-
* const privacyConsent = new OasBoolean({
|
|
106
|
-
* title: 'Privacy Policy Accepted',
|
|
107
|
-
* description: 'User has accepted the privacy policy',
|
|
108
|
-
* default: false,
|
|
109
|
-
* example: true
|
|
110
|
-
* });
|
|
111
|
-
*
|
|
112
|
-
* // Used in registration forms where consent is required
|
|
113
|
-
* ```
|
|
114
|
-
*
|
|
115
|
-
* @example Optional settings with nullable booleans
|
|
116
|
-
* ```typescript
|
|
117
|
-
* const userPreferences = new OasObject({
|
|
118
|
-
* properties: {
|
|
119
|
-
* emailNotifications: new OasBoolean<true>({
|
|
120
|
-
* title: 'Email Notifications',
|
|
121
|
-
* description: 'Enable email notifications (null means use default)',
|
|
122
|
-
* nullable: true,
|
|
123
|
-
* default: null
|
|
124
|
-
* }),
|
|
125
|
-
* smsNotifications: new OasBoolean<true>({
|
|
126
|
-
* title: 'SMS Notifications',
|
|
127
|
-
* description: 'Enable SMS notifications (null means not set)',
|
|
128
|
-
* nullable: true,
|
|
129
|
-
* default: null
|
|
130
|
-
* })
|
|
131
|
-
* }
|
|
132
|
-
* });
|
|
133
|
-
*
|
|
134
|
-
* // Allows: { emailNotifications: true, smsNotifications: null }
|
|
135
|
-
* ```
|
|
136
|
-
*/
|
|
137
4
|
class OasBoolean {
|
|
138
5
|
/**
|
|
139
6
|
* Creates a new OasBoolean instance.
|
|
@@ -221,6 +88,27 @@ class OasBoolean {
|
|
|
221
88
|
writable: true,
|
|
222
89
|
value: void 0
|
|
223
90
|
});
|
|
91
|
+
/** Whether the boolean is read-only */
|
|
92
|
+
Object.defineProperty(this, "readOnly", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
configurable: true,
|
|
95
|
+
writable: true,
|
|
96
|
+
value: void 0
|
|
97
|
+
});
|
|
98
|
+
/** Whether the boolean is write-only */
|
|
99
|
+
Object.defineProperty(this, "writeOnly", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
configurable: true,
|
|
102
|
+
writable: true,
|
|
103
|
+
value: void 0
|
|
104
|
+
});
|
|
105
|
+
/** Whether the boolean is deprecated */
|
|
106
|
+
Object.defineProperty(this, "deprecated", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
configurable: true,
|
|
109
|
+
writable: true,
|
|
110
|
+
value: void 0
|
|
111
|
+
});
|
|
224
112
|
this.title = fields.title;
|
|
225
113
|
this.description = fields.description;
|
|
226
114
|
this.nullable = fields.nullable;
|
|
@@ -228,6 +116,9 @@ class OasBoolean {
|
|
|
228
116
|
this.example = fields.example;
|
|
229
117
|
this.enums = fields.enums;
|
|
230
118
|
this.default = fields.default;
|
|
119
|
+
this.readOnly = fields.readOnly;
|
|
120
|
+
this.writeOnly = fields.writeOnly;
|
|
121
|
+
this.deprecated = fields.deprecated;
|
|
231
122
|
}
|
|
232
123
|
/**
|
|
233
124
|
* Determines if this boolean is a reference object.
|
|
@@ -268,7 +159,10 @@ class OasBoolean {
|
|
|
268
159
|
nullable: this.nullable,
|
|
269
160
|
example: this.example,
|
|
270
161
|
enum: this.enums,
|
|
271
|
-
default: this.default
|
|
162
|
+
default: this.default,
|
|
163
|
+
readOnly: this.readOnly,
|
|
164
|
+
writeOnly: this.writeOnly,
|
|
165
|
+
deprecated: this.deprecated
|
|
272
166
|
};
|
|
273
167
|
}
|
|
274
168
|
}
|
|
@@ -35,7 +35,16 @@ import * as v from 'valibot';
|
|
|
35
35
|
* console.log(result.enum); // [true]
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
export declare const oasBooleanData: v.
|
|
38
|
+
export declare const oasBooleanData: v.ObjectSchema<{
|
|
39
|
+
readonly type: v.LiteralSchema<"boolean", undefined>;
|
|
40
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
+
readonly enum: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
44
|
+
readonly readOnly: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
45
|
+
readonly writeOnly: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
46
|
+
readonly deprecated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
47
|
+
}, undefined>;
|
|
39
48
|
/**
|
|
40
49
|
* Data type for OpenAPI boolean schema objects.
|
|
41
50
|
*
|
|
@@ -96,5 +105,9 @@ export type OasBooleanData = {
|
|
|
96
105
|
default?: boolean;
|
|
97
106
|
/** Array of valid boolean values for enumeration constraints */
|
|
98
107
|
enum?: boolean[];
|
|
108
|
+
readOnly?: boolean;
|
|
109
|
+
writeOnly?: boolean;
|
|
110
|
+
/** Whether the boolean is deprecated */
|
|
111
|
+
deprecated?: boolean;
|
|
99
112
|
};
|
|
100
113
|
//# sourceMappingURL=boolean-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-types.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/boolean-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"boolean-types.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/boolean-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,cAAc;;;;;;;;;aASzB,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,yCAAyC;IACzC,IAAI,EAAE,SAAS,CAAA;IACf,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gEAAgE;IAChE,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
|
|
@@ -76,5 +76,8 @@ exports.oasBooleanData = v.object({
|
|
|
76
76
|
title: v.optional(v.string()),
|
|
77
77
|
description: v.optional(v.string()),
|
|
78
78
|
default: v.optional(v.boolean()),
|
|
79
|
-
enum: v.optional(v.array(v.boolean()))
|
|
79
|
+
enum: v.optional(v.array(v.boolean())),
|
|
80
|
+
readOnly: v.optional(v.boolean()),
|
|
81
|
+
writeOnly: v.optional(v.boolean()),
|
|
82
|
+
deprecated: v.optional(v.boolean())
|
|
80
83
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toBoolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/toBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"toBoolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/toBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAOzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,eAAO,MAAM,SAAS,GAAI,oBAAoB,aAAa,KAAG,UAiD7D,CAAA;AAED,KAAK,mBAAmB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC/D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAA;IACrE,OAAO,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IACjF,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACrF,YAAY,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACvF,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,4DAOnE,mBAAmB,CAAC,QAAQ,CAAC,KAAG,UAAU,CAAC,QAAQ,CA0BrD,CAAA"}
|