@skmtc/core 0.0.924 → 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 +2 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +10 -9
- 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 +3 -8
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +16 -102
- 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.d.ts.map +1 -1
- 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 -14
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +0 -14
- 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/run/toArtifacts.d.ts +2 -2
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +2 -2
- 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/esm/typescript/FunctionParameter.d.ts.map +1 -1
- package/esm/typescript/FunctionParameter.js +1 -1
- package/package.json +1 -15
- 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 +2 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +10 -9
- 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 +3 -8
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +16 -135
- 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.d.ts.map +1 -1
- package/script/helpers/naming.js +3 -3
- 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 -14
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +15 -29
- 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/run/toArtifacts.d.ts +2 -2
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +2 -2
- 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/script/typescript/FunctionParameter.d.ts.map +1 -1
- package/script/typescript/FunctionParameter.js +2 -2
- 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/helpers/generationStats.d.ts +0 -312
- package/esm/helpers/generationStats.d.ts.map +0 -1
- package/esm/helpers/generationStats.js +0 -330
- 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/helpers/generationStats.d.ts +0 -312
- package/script/helpers/generationStats.d.ts.map +0 -1
- package/script/helpers/generationStats.js +0 -339
- 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
package/esm/oas/array/toArray.js
CHANGED
|
@@ -2,11 +2,10 @@ import { OasArray } from './Array.js';
|
|
|
2
2
|
import { toSchemaV3 } from '../schema/toSchemasV3.js';
|
|
3
3
|
import { toSpecificationExtensionsV3 } from '../specificationExtensions/toSpecificationExtensionsV3.js';
|
|
4
4
|
import { parseNullable } from '../_helpers/parseNullable.js';
|
|
5
|
-
import { parseExample } from '../_helpers/parseExample.js';
|
|
6
5
|
import { parseEnum } from '../_helpers/parseEnum.js';
|
|
7
6
|
import * as v from 'valibot';
|
|
8
7
|
import { oasArrayDataWithoutItems } from './array-types.js';
|
|
9
|
-
import {
|
|
8
|
+
import { tracer } from '../../helpers/tracer.js';
|
|
10
9
|
/**
|
|
11
10
|
* Transforms an OpenAPI v3 array schema object into an internal OAS array representation.
|
|
12
11
|
*
|
|
@@ -71,23 +70,28 @@ export const toArray = ({ value, context }) => {
|
|
|
71
70
|
value,
|
|
72
71
|
context
|
|
73
72
|
});
|
|
74
|
-
const { example,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
const { example: unparsedExample, ...valueWithoutExample } = valueWithoutNullable;
|
|
74
|
+
const example = parseExample({
|
|
75
|
+
example: unparsedExample,
|
|
76
|
+
context,
|
|
77
|
+
parent: valueWithoutNullable,
|
|
78
|
+
nullable
|
|
79
79
|
});
|
|
80
|
-
const { enum:
|
|
81
|
-
|
|
80
|
+
const { enum: unparsedEnums, ...valueWithoutEnums } = valueWithoutExample;
|
|
81
|
+
const enums = parseEnum({
|
|
82
|
+
value: unparsedEnums,
|
|
82
83
|
nullable,
|
|
83
|
-
|
|
84
|
-
context
|
|
84
|
+
parent: valueWithoutExample,
|
|
85
|
+
context,
|
|
86
|
+
check: Array.isArray,
|
|
87
|
+
toMessage: item => `Removed invalid enum. Expected "array", got: ${item}`
|
|
85
88
|
});
|
|
86
|
-
const { default:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
const { default: unparsedDefaultValue, ...valueWithoutDefault } = valueWithoutEnums;
|
|
90
|
+
const defaultValue = parseDefault({
|
|
91
|
+
defaultValue: unparsedDefaultValue,
|
|
92
|
+
context,
|
|
93
|
+
parent: valueWithoutEnums,
|
|
94
|
+
nullable
|
|
91
95
|
});
|
|
92
96
|
return toParsedArray({
|
|
93
97
|
context,
|
|
@@ -98,64 +102,14 @@ export const toArray = ({ value, context }) => {
|
|
|
98
102
|
value: valueWithoutDefault
|
|
99
103
|
});
|
|
100
104
|
};
|
|
101
|
-
/**
|
|
102
|
-
* Creates an OAS array instance from pre-parsed array schema components.
|
|
103
|
-
*
|
|
104
|
-
* This function is the final step in the array transformation pipeline, taking
|
|
105
|
-
* already-parsed nullable, example, enum, and default values and combining them
|
|
106
|
-
* with the remaining array properties to create the complete OasArray instance.
|
|
107
|
-
*
|
|
108
|
-
* The function handles type-safe nullable parsing, items schema resolution,
|
|
109
|
-
* and specification extension processing. It uses Valibot for schema validation
|
|
110
|
-
* and maintains proper type relationships between nullable flags and value types.
|
|
111
|
-
*
|
|
112
|
-
* @template Nullable - Boolean type indicating if the array can be null
|
|
113
|
-
* @param args - Pre-parsed array components
|
|
114
|
-
* @param args.value - OpenAPI array object without parsed fields
|
|
115
|
-
* @param args.context - Parse context for tracing and utilities
|
|
116
|
-
* @param args.nullable - Parsed nullable flag
|
|
117
|
-
* @param args.example - Parsed example value (type-safe with nullable)
|
|
118
|
-
* @param args.enums - Parsed enumeration constraints (type-safe with nullable)
|
|
119
|
-
* @param args.defaultValue - Parsed default value (type-safe with nullable)
|
|
120
|
-
* @returns Complete OAS array instance with all properties
|
|
121
|
-
*
|
|
122
|
-
* @example Type-safe nullable array
|
|
123
|
-
* ```typescript
|
|
124
|
-
* const nullableArray = toParsedArray({
|
|
125
|
-
* context: parseContext,
|
|
126
|
-
* nullable: true,
|
|
127
|
-
* example: [1, 2, 3], // Can be null due to nullable: true
|
|
128
|
-
* enums: [[1], [2], null], // Null allowed in enums
|
|
129
|
-
* defaultValue: null,
|
|
130
|
-
* value: {
|
|
131
|
-
* type: 'array',
|
|
132
|
-
* items: { type: 'number' },
|
|
133
|
-
* maxItems: 5
|
|
134
|
-
* }
|
|
135
|
-
* });
|
|
136
|
-
* ```
|
|
137
|
-
*
|
|
138
|
-
* @example Non-nullable array
|
|
139
|
-
* ```typescript
|
|
140
|
-
* const regularArray = toParsedArray({
|
|
141
|
-
* context: parseContext,
|
|
142
|
-
* nullable: false,
|
|
143
|
-
* example: ['a', 'b'], // Cannot be null
|
|
144
|
-
* enums: [['x'], ['y']], // No null values allowed
|
|
145
|
-
* defaultValue: [],
|
|
146
|
-
* value: {
|
|
147
|
-
* type: 'array',
|
|
148
|
-
* items: { type: 'string' }
|
|
149
|
-
* }
|
|
150
|
-
* });
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
105
|
export const toParsedArray = ({ context, nullable, example, enums, defaultValue, value }) => {
|
|
154
106
|
// We only want parse non-items fields here since items is handled below
|
|
155
107
|
const { items, ...rest } = value;
|
|
156
108
|
// Parse the object without items field
|
|
157
|
-
|
|
158
|
-
|
|
109
|
+
if (!v.is(oasArrayDataWithoutItems, rest)) {
|
|
110
|
+
v.parse(oasArrayDataWithoutItems, rest);
|
|
111
|
+
}
|
|
112
|
+
const { type: _type, title, description, uniqueItems, maxItems, minItems, readOnly, writeOnly, deprecated, ...skipped } = rest;
|
|
159
113
|
const extensionFields = toSpecificationExtensionsV3({
|
|
160
114
|
skipped,
|
|
161
115
|
parent: value,
|
|
@@ -171,12 +125,53 @@ export const toParsedArray = ({ context, nullable, example, enums, defaultValue,
|
|
|
171
125
|
description,
|
|
172
126
|
nullable,
|
|
173
127
|
defaultValue,
|
|
174
|
-
items: context.
|
|
128
|
+
items: tracer(context.stackTrail, 'items', () => toSchemaV3({ schema: items, context })),
|
|
175
129
|
extensionFields,
|
|
176
130
|
example,
|
|
177
131
|
uniqueItems,
|
|
178
132
|
maxItems,
|
|
179
133
|
minItems,
|
|
180
|
-
enums
|
|
134
|
+
enums,
|
|
135
|
+
readOnly,
|
|
136
|
+
writeOnly,
|
|
137
|
+
deprecated
|
|
181
138
|
});
|
|
182
139
|
};
|
|
140
|
+
const parseExample = ({ example, context, parent, nullable }) => {
|
|
141
|
+
if (example === undefined) {
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
if (nullable && example === null) {
|
|
145
|
+
return example;
|
|
146
|
+
}
|
|
147
|
+
if (!Array.isArray(example)) {
|
|
148
|
+
context.logIssue({
|
|
149
|
+
key: 'example',
|
|
150
|
+
level: 'warning',
|
|
151
|
+
message: `Removed invalid example. Expected "array", got: ${example}`,
|
|
152
|
+
parent,
|
|
153
|
+
type: 'INVALID_EXAMPLE'
|
|
154
|
+
});
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
return example;
|
|
158
|
+
};
|
|
159
|
+
const parseDefault = ({ defaultValue, context, parent, nullable }) => {
|
|
160
|
+
if (defaultValue === undefined) {
|
|
161
|
+
return undefined;
|
|
162
|
+
}
|
|
163
|
+
if (nullable && defaultValue === null) {
|
|
164
|
+
return defaultValue;
|
|
165
|
+
}
|
|
166
|
+
if (!Array.isArray(defaultValue)) {
|
|
167
|
+
context.logIssue({
|
|
168
|
+
key: 'default',
|
|
169
|
+
level: 'warning',
|
|
170
|
+
message: `Invalid default: ${defaultValue}`,
|
|
171
|
+
parent,
|
|
172
|
+
type: 'INVALID_DEFAULT'
|
|
173
|
+
});
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
return defaultValue;
|
|
177
|
+
};
|
|
@@ -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,136 +1,3 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a boolean schema in the OpenAPI Specification.
|
|
4
|
-
*
|
|
5
|
-
* The `OasBoolean` class handles boolean data types in OpenAPI schemas, supporting
|
|
6
|
-
* both simple true/false values and more complex boolean schemas with constraints,
|
|
7
|
-
* enumerations, and nullable types. This class provides type-safe boolean handling
|
|
8
|
-
* with optional null value support through generic typing.
|
|
9
|
-
*
|
|
10
|
-
* ## Key Features
|
|
11
|
-
*
|
|
12
|
-
* - **Type Safety**: Generic nullable type support with proper TypeScript inference
|
|
13
|
-
* - **Enum Support**: Constrain boolean values to specific true/false combinations
|
|
14
|
-
* - **Null Handling**: Optional null value support for nullable boolean types
|
|
15
|
-
* - **Validation**: Default values and example validation
|
|
16
|
-
* - **JSON Schema**: Converts to standard JSON Schema format for validation
|
|
17
|
-
* - **Documentation**: Rich metadata support for API documentation
|
|
18
|
-
*
|
|
19
|
-
* @template Nullable - Whether the boolean value itself can be null
|
|
20
|
-
*
|
|
21
|
-
* @example Basic boolean schema
|
|
22
|
-
* ```typescript
|
|
23
|
-
* import { OasBoolean } from '@skmtc/core';
|
|
24
|
-
*
|
|
25
|
-
* const isActiveSchema = new OasBoolean({
|
|
26
|
-
* title: 'Active Status',
|
|
27
|
-
* description: 'Whether the user account is active',
|
|
28
|
-
* default: true,
|
|
29
|
-
* example: true
|
|
30
|
-
* });
|
|
31
|
-
*
|
|
32
|
-
* // This represents: boolean with default true
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @example Nullable boolean schema
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const nullableFlag = new OasBoolean<true>({
|
|
38
|
-
* title: 'Optional Flag',
|
|
39
|
-
* description: 'An optional boolean flag that can be null',
|
|
40
|
-
* nullable: true,
|
|
41
|
-
* default: null,
|
|
42
|
-
* example: true
|
|
43
|
-
* });
|
|
44
|
-
*
|
|
45
|
-
* // This represents: boolean | null
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @example Boolean with enum constraints
|
|
49
|
-
* ```typescript
|
|
50
|
-
* const strictBoolean = new OasBoolean({
|
|
51
|
-
* title: 'Confirmation',
|
|
52
|
-
* description: 'Must explicitly be true to confirm action',
|
|
53
|
-
* enums: [true], // Only true is allowed
|
|
54
|
-
* example: true
|
|
55
|
-
* });
|
|
56
|
-
*
|
|
57
|
-
* // This only accepts true, effectively making it required
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @example Boolean with null in enum
|
|
61
|
-
* ```typescript
|
|
62
|
-
* const triStateBoolean = new OasBoolean<true>({
|
|
63
|
-
* title: 'Approval Status',
|
|
64
|
-
* description: 'Approval can be true (approved), false (denied), or null (pending)',
|
|
65
|
-
* nullable: true,
|
|
66
|
-
* enums: [true, false, null],
|
|
67
|
-
* default: null,
|
|
68
|
-
* example: null
|
|
69
|
-
* });
|
|
70
|
-
*
|
|
71
|
-
* // This represents: true | false | null (tri-state logic)
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
|
-
* @example Feature flag schema
|
|
75
|
-
* ```typescript
|
|
76
|
-
* const featureFlag = new OasBoolean({
|
|
77
|
-
* title: 'Feature Enabled',
|
|
78
|
-
* description: 'Whether the new feature is enabled for this user',
|
|
79
|
-
* default: false,
|
|
80
|
-
* example: false
|
|
81
|
-
* });
|
|
82
|
-
*
|
|
83
|
-
* // Used in configuration objects
|
|
84
|
-
* const userConfig = new OasObject({
|
|
85
|
-
* properties: {
|
|
86
|
-
* darkMode: featureFlag,
|
|
87
|
-
* notifications: featureFlag,
|
|
88
|
-
* betaFeatures: featureFlag
|
|
89
|
-
* }
|
|
90
|
-
* });
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* @example Consent and agreement booleans
|
|
94
|
-
* ```typescript
|
|
95
|
-
* const consentSchema = new OasBoolean({
|
|
96
|
-
* title: 'Terms Accepted',
|
|
97
|
-
* description: 'User has accepted the terms and conditions',
|
|
98
|
-
* enums: [true], // Must be true to be valid
|
|
99
|
-
* example: true
|
|
100
|
-
* });
|
|
101
|
-
*
|
|
102
|
-
* const privacyConsent = new OasBoolean({
|
|
103
|
-
* title: 'Privacy Policy Accepted',
|
|
104
|
-
* description: 'User has accepted the privacy policy',
|
|
105
|
-
* default: false,
|
|
106
|
-
* example: true
|
|
107
|
-
* });
|
|
108
|
-
*
|
|
109
|
-
* // Used in registration forms where consent is required
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @example Optional settings with nullable booleans
|
|
113
|
-
* ```typescript
|
|
114
|
-
* const userPreferences = new OasObject({
|
|
115
|
-
* properties: {
|
|
116
|
-
* emailNotifications: new OasBoolean<true>({
|
|
117
|
-
* title: 'Email Notifications',
|
|
118
|
-
* description: 'Enable email notifications (null means use default)',
|
|
119
|
-
* nullable: true,
|
|
120
|
-
* default: null
|
|
121
|
-
* }),
|
|
122
|
-
* smsNotifications: new OasBoolean<true>({
|
|
123
|
-
* title: 'SMS Notifications',
|
|
124
|
-
* description: 'Enable SMS notifications (null means not set)',
|
|
125
|
-
* nullable: true,
|
|
126
|
-
* default: null
|
|
127
|
-
* })
|
|
128
|
-
* }
|
|
129
|
-
* });
|
|
130
|
-
*
|
|
131
|
-
* // Allows: { emailNotifications: true, smsNotifications: null }
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
1
|
export class OasBoolean {
|
|
135
2
|
/**
|
|
136
3
|
* Creates a new OasBoolean instance.
|
|
@@ -218,6 +85,27 @@ export class OasBoolean {
|
|
|
218
85
|
writable: true,
|
|
219
86
|
value: void 0
|
|
220
87
|
});
|
|
88
|
+
/** Whether the boolean is read-only */
|
|
89
|
+
Object.defineProperty(this, "readOnly", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
value: void 0
|
|
94
|
+
});
|
|
95
|
+
/** Whether the boolean is write-only */
|
|
96
|
+
Object.defineProperty(this, "writeOnly", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true,
|
|
100
|
+
value: void 0
|
|
101
|
+
});
|
|
102
|
+
/** Whether the boolean is deprecated */
|
|
103
|
+
Object.defineProperty(this, "deprecated", {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
configurable: true,
|
|
106
|
+
writable: true,
|
|
107
|
+
value: void 0
|
|
108
|
+
});
|
|
221
109
|
this.title = fields.title;
|
|
222
110
|
this.description = fields.description;
|
|
223
111
|
this.nullable = fields.nullable;
|
|
@@ -225,6 +113,9 @@ export class OasBoolean {
|
|
|
225
113
|
this.example = fields.example;
|
|
226
114
|
this.enums = fields.enums;
|
|
227
115
|
this.default = fields.default;
|
|
116
|
+
this.readOnly = fields.readOnly;
|
|
117
|
+
this.writeOnly = fields.writeOnly;
|
|
118
|
+
this.deprecated = fields.deprecated;
|
|
228
119
|
}
|
|
229
120
|
/**
|
|
230
121
|
* Determines if this boolean is a reference object.
|
|
@@ -265,7 +156,10 @@ export class OasBoolean {
|
|
|
265
156
|
nullable: this.nullable,
|
|
266
157
|
example: this.example,
|
|
267
158
|
enum: this.enums,
|
|
268
|
-
default: this.default
|
|
159
|
+
default: this.default,
|
|
160
|
+
readOnly: this.readOnly,
|
|
161
|
+
writeOnly: this.writeOnly,
|
|
162
|
+
deprecated: this.deprecated
|
|
269
163
|
};
|
|
270
164
|
}
|
|
271
165
|
}
|
|
@@ -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"}
|
|
@@ -40,5 +40,8 @@ export const oasBooleanData = v.object({
|
|
|
40
40
|
title: v.optional(v.string()),
|
|
41
41
|
description: v.optional(v.string()),
|
|
42
42
|
default: v.optional(v.boolean()),
|
|
43
|
-
enum: v.optional(v.array(v.boolean()))
|
|
43
|
+
enum: v.optional(v.array(v.boolean())),
|
|
44
|
+
readOnly: v.optional(v.boolean()),
|
|
45
|
+
writeOnly: v.optional(v.boolean()),
|
|
46
|
+
deprecated: v.optional(v.boolean())
|
|
44
47
|
});
|
|
@@ -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"}
|