@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
|
@@ -37,27 +37,29 @@ exports.toParsedInteger = exports.toInteger = void 0;
|
|
|
37
37
|
const Integer_js_1 = require("./Integer.js");
|
|
38
38
|
const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toSpecificationExtensionsV3.js");
|
|
39
39
|
const integer_types_js_1 = require("./integer-types.js");
|
|
40
|
-
const v = __importStar(require("valibot"));
|
|
41
40
|
const parseNullable_js_1 = require("../_helpers/parseNullable.js");
|
|
42
|
-
const parseExample_js_1 = require("../_helpers/parseExample.js");
|
|
43
41
|
const parseEnum_js_1 = require("../_helpers/parseEnum.js");
|
|
44
|
-
const
|
|
42
|
+
const v = __importStar(require("valibot"));
|
|
45
43
|
const toInteger = ({ value, context }) => {
|
|
46
44
|
const { nullable, value: valueWithoutNullable } = (0, parseNullable_js_1.parseNullable)({
|
|
47
45
|
value,
|
|
48
46
|
context
|
|
49
47
|
});
|
|
50
|
-
const { example,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
const { example: unparsedExample, ...valueWithoutExample } = valueWithoutNullable;
|
|
49
|
+
const example = parseExample({
|
|
50
|
+
example: unparsedExample,
|
|
51
|
+
context,
|
|
52
|
+
parent: valueWithoutNullable,
|
|
53
|
+
nullable
|
|
55
54
|
});
|
|
56
|
-
const { enum:
|
|
57
|
-
|
|
55
|
+
const { enum: unparsedEnums, ...valueWithoutEnums } = valueWithoutExample;
|
|
56
|
+
const enums = (0, parseEnum_js_1.parseEnum)({
|
|
57
|
+
value: unparsedEnums,
|
|
58
58
|
nullable,
|
|
59
|
-
|
|
60
|
-
context
|
|
59
|
+
parent: valueWithoutExample,
|
|
60
|
+
context,
|
|
61
|
+
check: Number.isInteger,
|
|
62
|
+
toMessage: item => `Removed invalid enum. Expected "integer", got: ${item}`
|
|
61
63
|
});
|
|
62
64
|
return (0, exports.toParsedInteger)({
|
|
63
65
|
context,
|
|
@@ -69,12 +71,16 @@ const toInteger = ({ value, context }) => {
|
|
|
69
71
|
};
|
|
70
72
|
exports.toInteger = toInteger;
|
|
71
73
|
const toParsedInteger = ({ context, nullable, example, enums, value: valueWithoutEnums }) => {
|
|
72
|
-
const { format,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
context
|
|
74
|
+
const { format: unparsedFormat, ...valueWithoutFormat } = valueWithoutEnums;
|
|
75
|
+
const format = parseIntegerFormat({
|
|
76
|
+
format: unparsedFormat,
|
|
77
|
+
context,
|
|
78
|
+
parent: valueWithoutEnums
|
|
76
79
|
});
|
|
77
|
-
|
|
80
|
+
if (!v.is(integer_types_js_1.oasIntegerData, valueWithoutFormat)) {
|
|
81
|
+
v.parse(integer_types_js_1.oasIntegerData, valueWithoutFormat);
|
|
82
|
+
}
|
|
83
|
+
const { type: _type, title, description, default: defaultValue, multipleOf, maximum, exclusiveMaximum, minimum, exclusiveMinimum, readOnly, writeOnly, deprecated, ...skipped } = valueWithoutFormat;
|
|
78
84
|
const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
|
|
79
85
|
skipped,
|
|
80
86
|
parent: valueWithoutEnums,
|
|
@@ -94,7 +100,48 @@ const toParsedInteger = ({ context, nullable, example, enums, value: valueWithou
|
|
|
94
100
|
minimum,
|
|
95
101
|
exclusiveMinimum,
|
|
96
102
|
default: defaultValue,
|
|
97
|
-
|
|
103
|
+
readOnly,
|
|
104
|
+
writeOnly,
|
|
105
|
+
extensionFields,
|
|
106
|
+
deprecated
|
|
98
107
|
});
|
|
99
108
|
};
|
|
100
109
|
exports.toParsedInteger = toParsedInteger;
|
|
110
|
+
const parseIntegerFormat = ({ format, context, parent }) => {
|
|
111
|
+
if (format === undefined) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
if (!v.is(integer_types_js_1.integerFormat, format)) {
|
|
115
|
+
context.logIssue({
|
|
116
|
+
key: 'format',
|
|
117
|
+
level: 'warning',
|
|
118
|
+
message: `Invalid format: ${format}`,
|
|
119
|
+
parent,
|
|
120
|
+
type: 'INVALID_FORMAT'
|
|
121
|
+
});
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
return format;
|
|
125
|
+
};
|
|
126
|
+
const parseExample = ({ example, context, parent, nullable }) => {
|
|
127
|
+
if (example === undefined) {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
if (nullable && example === null) {
|
|
131
|
+
return example;
|
|
132
|
+
}
|
|
133
|
+
if (!isInteger(example)) {
|
|
134
|
+
context.logIssue({
|
|
135
|
+
key: 'example',
|
|
136
|
+
level: 'warning',
|
|
137
|
+
message: `Removed invalid example. Expected "integer", got: ${example}`,
|
|
138
|
+
parent,
|
|
139
|
+
type: 'INVALID_EXAMPLE'
|
|
140
|
+
});
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
return example;
|
|
144
|
+
};
|
|
145
|
+
const isInteger = (value) => {
|
|
146
|
+
return Number.isInteger(value);
|
|
147
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toMediaTypeItemV3.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/toMediaTypeItemV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"toMediaTypeItemV3.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/toMediaTypeItemV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAK7C;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B,oDAAoD;IACpD,aAAa,EAAE,SAAS,CAAC,eAAe,CAAA;IACxC,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,eAAO,MAAM,iBAAiB,GAAI,uCAI/B,qBAAqB,KAAG,YAiC1B,CAAA;AAED;;GAEG;AACH,KAAK,sBAAsB,GAAG;IAC5B,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,CAAA;IAClD,qDAAqD;IACrD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,eAAO,MAAM,kBAAkB,GAAI,sBAGhC,sBAAsB,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAatD,CAAA;AAED;;GAEG;AACH,KAAK,8BAA8B,GAAG;IACpC,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;IAC9D,qDAAqD;IACrD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,eAAO,MAAM,0BAA0B,GAAI,sBAGxC,8BAA8B,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAMlE,CAAA"}
|
|
@@ -5,6 +5,7 @@ const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
|
|
|
5
5
|
const toExamplesV3_js_1 = require("../example/toExamplesV3.js");
|
|
6
6
|
const MediaType_js_1 = require("./MediaType.js");
|
|
7
7
|
const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toSpecificationExtensionsV3.js");
|
|
8
|
+
const tracer_js_1 = require("../../helpers/tracer.js");
|
|
8
9
|
/**
|
|
9
10
|
* Transforms an OpenAPI v3 media type object into an internal OAS media type representation.
|
|
10
11
|
*
|
|
@@ -118,8 +119,8 @@ const toMediaTypeItemV3 = ({ mediaTypeItem, mediaType, context }) => {
|
|
|
118
119
|
const fields = {
|
|
119
120
|
mediaType,
|
|
120
121
|
encoding,
|
|
121
|
-
schema: context.
|
|
122
|
-
examples: context.
|
|
122
|
+
schema: (0, tracer_js_1.tracer)(context.stackTrail, 'schema', () => (0, toSchemasV3_js_1.toOptionalSchemaV3)({ schema, context })),
|
|
123
|
+
examples: (0, tracer_js_1.tracer)(context.stackTrail, 'examples', () => (0, toExamplesV3_js_1.toExamplesV3)({
|
|
123
124
|
example,
|
|
124
125
|
examples,
|
|
125
126
|
exampleKey: mediaType,
|
|
@@ -214,14 +215,12 @@ exports.toMediaTypeItemV3 = toMediaTypeItemV3;
|
|
|
214
215
|
* ```
|
|
215
216
|
*/
|
|
216
217
|
const toMediaTypeItemsV3 = ({ content, context }) => {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}))
|
|
224
|
-
]));
|
|
218
|
+
const output = {};
|
|
219
|
+
const entries = Object.entries(content);
|
|
220
|
+
for (const [mediaType, value] of entries) {
|
|
221
|
+
output[mediaType] = (0, tracer_js_1.tracer)(context.stackTrail, mediaType, () => (0, exports.toMediaTypeItemV3)({ mediaTypeItem: value, mediaType, context }));
|
|
222
|
+
}
|
|
223
|
+
return output;
|
|
225
224
|
};
|
|
226
225
|
exports.toMediaTypeItemsV3 = toMediaTypeItemsV3;
|
|
227
226
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
1
|
import type { OasRef } from '../ref/Ref.js';
|
|
3
2
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
4
3
|
import type { ToJsonSchemaOptions } from '../schema/Schema.js';
|
|
@@ -34,170 +33,13 @@ export type NumberFields<Nullable extends boolean | undefined> = {
|
|
|
34
33
|
minimum?: number;
|
|
35
34
|
/** Whether the minimum value is exclusive */
|
|
36
35
|
exclusiveMinimum?: boolean;
|
|
36
|
+
/** Whether the number is read-only */
|
|
37
|
+
readOnly?: boolean;
|
|
38
|
+
/** Whether the number is write-only */
|
|
39
|
+
writeOnly?: boolean;
|
|
40
|
+
/** Whether the number is deprecated */
|
|
41
|
+
deprecated?: boolean;
|
|
37
42
|
};
|
|
38
|
-
/**
|
|
39
|
-
* Represents a number schema in the OpenAPI Specification.
|
|
40
|
-
*
|
|
41
|
-
* The `OasNumber` class handles floating-point numeric data types in OpenAPI schemas,
|
|
42
|
-
* supporting comprehensive validation constraints including ranges, precision formats,
|
|
43
|
-
* and mathematical constraints. This class provides type-safe number handling with
|
|
44
|
-
* optional null value support and extensive validation capabilities.
|
|
45
|
-
*
|
|
46
|
-
* ## Key Features
|
|
47
|
-
*
|
|
48
|
-
* - **Range Validation**: Minimum and maximum constraints with exclusive/inclusive options
|
|
49
|
-
* - **Precision Control**: Float and double format support for different precision needs
|
|
50
|
-
* - **Mathematical Constraints**: Multiple-of validation for specific numeric patterns
|
|
51
|
-
* - **Type Safety**: Generic nullable type support with proper TypeScript inference
|
|
52
|
-
* - **Enum Support**: Constrain numbers to specific allowed values
|
|
53
|
-
* - **Null Handling**: Optional null value support for nullable number types
|
|
54
|
-
*
|
|
55
|
-
* @template Nullable - Whether the number value itself can be null
|
|
56
|
-
*
|
|
57
|
-
* @example Basic number schema with range
|
|
58
|
-
* ```typescript
|
|
59
|
-
* import { OasNumber } from '@skmtc/core';
|
|
60
|
-
*
|
|
61
|
-
* const ageSchema = new OasNumber({
|
|
62
|
-
* title: 'Age',
|
|
63
|
-
* description: 'Person age in years',
|
|
64
|
-
* minimum: 0,
|
|
65
|
-
* maximum: 150,
|
|
66
|
-
* example: 25,
|
|
67
|
-
* default: 18
|
|
68
|
-
* });
|
|
69
|
-
*
|
|
70
|
-
* // This represents: number (0 <= value <= 150)
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* @example Price with precision and constraints
|
|
74
|
-
* ```typescript
|
|
75
|
-
* const priceSchema = new OasNumber({
|
|
76
|
-
* title: 'Product Price',
|
|
77
|
-
* description: 'Price in USD with cent precision',
|
|
78
|
-
* format: 'double',
|
|
79
|
-
* minimum: 0,
|
|
80
|
-
* exclusiveMinimum: true, // Must be > 0, not >= 0
|
|
81
|
-
* multipleOf: 0.01, // Must be in cents (e.g., 19.99, 10.50)
|
|
82
|
-
* example: 29.99
|
|
83
|
-
* });
|
|
84
|
-
*
|
|
85
|
-
* // This represents: number > 0, in multiples of 0.01
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* @example Percentage with strict bounds
|
|
89
|
-
* ```typescript
|
|
90
|
-
* const percentageSchema = new OasNumber({
|
|
91
|
-
* title: 'Completion Percentage',
|
|
92
|
-
* description: 'Task completion as a percentage',
|
|
93
|
-
* minimum: 0,
|
|
94
|
-
* maximum: 100,
|
|
95
|
-
* multipleOf: 0.1, // One decimal place precision
|
|
96
|
-
* example: 75.5,
|
|
97
|
-
* default: 0
|
|
98
|
-
* });
|
|
99
|
-
*
|
|
100
|
-
* // This represents: 0 <= value <= 100, in increments of 0.1
|
|
101
|
-
* ```
|
|
102
|
-
*
|
|
103
|
-
* @example Nullable rating system
|
|
104
|
-
* ```typescript
|
|
105
|
-
* const ratingSchema = new OasNumber<true>({
|
|
106
|
-
* title: 'User Rating',
|
|
107
|
-
* description: 'Product rating from 1-5 stars, null if not rated',
|
|
108
|
-
* nullable: true,
|
|
109
|
-
* minimum: 1,
|
|
110
|
-
* maximum: 5,
|
|
111
|
-
* multipleOf: 0.5, // Allow half-star ratings
|
|
112
|
-
* enums: [1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, null],
|
|
113
|
-
* example: 4.5,
|
|
114
|
-
* default: null
|
|
115
|
-
* });
|
|
116
|
-
*
|
|
117
|
-
* // This represents: (1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5) | null
|
|
118
|
-
* ```
|
|
119
|
-
*
|
|
120
|
-
* @example Scientific measurement with high precision
|
|
121
|
-
* ```typescript
|
|
122
|
-
* const temperatureSchema = new OasNumber({
|
|
123
|
-
* title: 'Temperature',
|
|
124
|
-
* description: 'Temperature in Celsius with high precision',
|
|
125
|
-
* format: 'double',
|
|
126
|
-
* minimum: -273.15, // Absolute zero
|
|
127
|
-
* maximum: 1000,
|
|
128
|
-
* multipleOf: 0.001, // Millikelvin precision
|
|
129
|
-
* example: 23.456
|
|
130
|
-
* });
|
|
131
|
-
*
|
|
132
|
-
* // For scientific applications requiring high precision
|
|
133
|
-
* ```
|
|
134
|
-
*
|
|
135
|
-
* @example Currency with regional constraints
|
|
136
|
-
* ```typescript
|
|
137
|
-
* const currencySchema = new OasNumber({
|
|
138
|
-
* title: 'Amount',
|
|
139
|
-
* description: 'Transaction amount in major currency units',
|
|
140
|
-
* format: 'double',
|
|
141
|
-
* minimum: 0,
|
|
142
|
-
* maximum: 999999.99,
|
|
143
|
-
* multipleOf: 0.01,
|
|
144
|
-
* example: 1234.56
|
|
145
|
-
* });
|
|
146
|
-
*
|
|
147
|
-
* // Used in financial applications
|
|
148
|
-
* const transaction = new OasObject({
|
|
149
|
-
* properties: {
|
|
150
|
-
* amount: currencySchema,
|
|
151
|
-
* currency: new OasString({ enum: ['USD', 'EUR', 'GBP'] })
|
|
152
|
-
* }
|
|
153
|
-
* });
|
|
154
|
-
* ```
|
|
155
|
-
*
|
|
156
|
-
* @example Coordinate system
|
|
157
|
-
* ```typescript
|
|
158
|
-
* const latitudeSchema = new OasNumber({
|
|
159
|
-
* title: 'Latitude',
|
|
160
|
-
* description: 'Geographic latitude coordinate',
|
|
161
|
-
* format: 'double',
|
|
162
|
-
* minimum: -90,
|
|
163
|
-
* maximum: 90,
|
|
164
|
-
* example: 40.7128
|
|
165
|
-
* });
|
|
166
|
-
*
|
|
167
|
-
* const longitudeSchema = new OasNumber({
|
|
168
|
-
* title: 'Longitude',
|
|
169
|
-
* description: 'Geographic longitude coordinate',
|
|
170
|
-
* format: 'double',
|
|
171
|
-
* minimum: -180,
|
|
172
|
-
* maximum: 180,
|
|
173
|
-
* example: -74.0060
|
|
174
|
-
* });
|
|
175
|
-
*
|
|
176
|
-
* // Used for location data
|
|
177
|
-
* ```
|
|
178
|
-
*
|
|
179
|
-
* @example Probability and statistics
|
|
180
|
-
* ```typescript
|
|
181
|
-
* const probabilitySchema = new OasNumber({
|
|
182
|
-
* title: 'Probability',
|
|
183
|
-
* description: 'Statistical probability value',
|
|
184
|
-
* minimum: 0,
|
|
185
|
-
* maximum: 1,
|
|
186
|
-
* exclusiveMaximum: false, // Can be exactly 1
|
|
187
|
-
* example: 0.75,
|
|
188
|
-
* default: 0.5
|
|
189
|
-
* });
|
|
190
|
-
*
|
|
191
|
-
* const confidenceSchema = new OasNumber({
|
|
192
|
-
* title: 'Confidence Level',
|
|
193
|
-
* description: 'Statistical confidence level as percentage',
|
|
194
|
-
* minimum: 0,
|
|
195
|
-
* maximum: 100,
|
|
196
|
-
* enums: [90, 95, 99], // Common confidence levels
|
|
197
|
-
* example: 95
|
|
198
|
-
* });
|
|
199
|
-
* ```
|
|
200
|
-
*/
|
|
201
43
|
export declare class OasNumber<Nullable extends boolean | undefined = boolean | undefined> {
|
|
202
44
|
/**
|
|
203
45
|
* Object is part the 'schema' set which is used
|
|
@@ -258,6 +100,18 @@ export declare class OasNumber<Nullable extends boolean | undefined = boolean |
|
|
|
258
100
|
* Whether the minimum value is exclusive.
|
|
259
101
|
*/
|
|
260
102
|
exclusiveMinimum: boolean | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Whether the number is read-only.
|
|
105
|
+
*/
|
|
106
|
+
readOnly: boolean | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the number is write-only.
|
|
109
|
+
*/
|
|
110
|
+
writeOnly: boolean | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Whether the number is deprecated.
|
|
113
|
+
*/
|
|
114
|
+
deprecated: boolean | undefined;
|
|
261
115
|
constructor(fields?: NumberFields<Nullable>);
|
|
262
116
|
isRef(): this is OasRef<'schema'>;
|
|
263
117
|
resolve(): OasNumber<Nullable>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/oas/number/Number.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/oas/number/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC/D,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,sEAAsE;IACtE,OAAO,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAChF,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,sEAAsE;IACtE,OAAO,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAChF,mFAAmF;IACnF,KAAK,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;IACpF,2DAA2D;IAC3D,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC3B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,qBAAa,SAAS,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS;IAC/E;;;OAGG;IACH,OAAO,EAAG,QAAQ,CAAS;IAC3B;;OAEG;IACH,IAAI,EAAG,QAAQ,CAAS;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;OAEG;IACH,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC9B,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACpD;;OAEG;IACH,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E;;OAEG;IACH,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;IACnF;;OAEG;IACH,MAAM,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B;;OAEG;IACH,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B;;OAEG;IACH,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;IACrC;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B;;OAEG;IACH,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B;;OAEG;IACH,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;gBACnB,MAAM,GAAE,YAAY,CAAC,QAAQ,CAAM;IAmB/C,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,SAAS,CAAC,QAAQ,CAAC;IAI9B,WAAW,IAAI,SAAS,CAAC,QAAQ,CAAC;IAKlC,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC,oBAAoB;CAkB5E"}
|
|
@@ -1,170 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OasNumber = void 0;
|
|
4
|
-
require("../../_dnt.polyfills.js");
|
|
5
|
-
/**
|
|
6
|
-
* Represents a number schema in the OpenAPI Specification.
|
|
7
|
-
*
|
|
8
|
-
* The `OasNumber` class handles floating-point numeric data types in OpenAPI schemas,
|
|
9
|
-
* supporting comprehensive validation constraints including ranges, precision formats,
|
|
10
|
-
* and mathematical constraints. This class provides type-safe number handling with
|
|
11
|
-
* optional null value support and extensive validation capabilities.
|
|
12
|
-
*
|
|
13
|
-
* ## Key Features
|
|
14
|
-
*
|
|
15
|
-
* - **Range Validation**: Minimum and maximum constraints with exclusive/inclusive options
|
|
16
|
-
* - **Precision Control**: Float and double format support for different precision needs
|
|
17
|
-
* - **Mathematical Constraints**: Multiple-of validation for specific numeric patterns
|
|
18
|
-
* - **Type Safety**: Generic nullable type support with proper TypeScript inference
|
|
19
|
-
* - **Enum Support**: Constrain numbers to specific allowed values
|
|
20
|
-
* - **Null Handling**: Optional null value support for nullable number types
|
|
21
|
-
*
|
|
22
|
-
* @template Nullable - Whether the number value itself can be null
|
|
23
|
-
*
|
|
24
|
-
* @example Basic number schema with range
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import { OasNumber } from '@skmtc/core';
|
|
27
|
-
*
|
|
28
|
-
* const ageSchema = new OasNumber({
|
|
29
|
-
* title: 'Age',
|
|
30
|
-
* description: 'Person age in years',
|
|
31
|
-
* minimum: 0,
|
|
32
|
-
* maximum: 150,
|
|
33
|
-
* example: 25,
|
|
34
|
-
* default: 18
|
|
35
|
-
* });
|
|
36
|
-
*
|
|
37
|
-
* // This represents: number (0 <= value <= 150)
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @example Price with precision and constraints
|
|
41
|
-
* ```typescript
|
|
42
|
-
* const priceSchema = new OasNumber({
|
|
43
|
-
* title: 'Product Price',
|
|
44
|
-
* description: 'Price in USD with cent precision',
|
|
45
|
-
* format: 'double',
|
|
46
|
-
* minimum: 0,
|
|
47
|
-
* exclusiveMinimum: true, // Must be > 0, not >= 0
|
|
48
|
-
* multipleOf: 0.01, // Must be in cents (e.g., 19.99, 10.50)
|
|
49
|
-
* example: 29.99
|
|
50
|
-
* });
|
|
51
|
-
*
|
|
52
|
-
* // This represents: number > 0, in multiples of 0.01
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @example Percentage with strict bounds
|
|
56
|
-
* ```typescript
|
|
57
|
-
* const percentageSchema = new OasNumber({
|
|
58
|
-
* title: 'Completion Percentage',
|
|
59
|
-
* description: 'Task completion as a percentage',
|
|
60
|
-
* minimum: 0,
|
|
61
|
-
* maximum: 100,
|
|
62
|
-
* multipleOf: 0.1, // One decimal place precision
|
|
63
|
-
* example: 75.5,
|
|
64
|
-
* default: 0
|
|
65
|
-
* });
|
|
66
|
-
*
|
|
67
|
-
* // This represents: 0 <= value <= 100, in increments of 0.1
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @example Nullable rating system
|
|
71
|
-
* ```typescript
|
|
72
|
-
* const ratingSchema = new OasNumber<true>({
|
|
73
|
-
* title: 'User Rating',
|
|
74
|
-
* description: 'Product rating from 1-5 stars, null if not rated',
|
|
75
|
-
* nullable: true,
|
|
76
|
-
* minimum: 1,
|
|
77
|
-
* maximum: 5,
|
|
78
|
-
* multipleOf: 0.5, // Allow half-star ratings
|
|
79
|
-
* enums: [1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, null],
|
|
80
|
-
* example: 4.5,
|
|
81
|
-
* default: null
|
|
82
|
-
* });
|
|
83
|
-
*
|
|
84
|
-
* // This represents: (1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5) | null
|
|
85
|
-
* ```
|
|
86
|
-
*
|
|
87
|
-
* @example Scientific measurement with high precision
|
|
88
|
-
* ```typescript
|
|
89
|
-
* const temperatureSchema = new OasNumber({
|
|
90
|
-
* title: 'Temperature',
|
|
91
|
-
* description: 'Temperature in Celsius with high precision',
|
|
92
|
-
* format: 'double',
|
|
93
|
-
* minimum: -273.15, // Absolute zero
|
|
94
|
-
* maximum: 1000,
|
|
95
|
-
* multipleOf: 0.001, // Millikelvin precision
|
|
96
|
-
* example: 23.456
|
|
97
|
-
* });
|
|
98
|
-
*
|
|
99
|
-
* // For scientific applications requiring high precision
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* @example Currency with regional constraints
|
|
103
|
-
* ```typescript
|
|
104
|
-
* const currencySchema = new OasNumber({
|
|
105
|
-
* title: 'Amount',
|
|
106
|
-
* description: 'Transaction amount in major currency units',
|
|
107
|
-
* format: 'double',
|
|
108
|
-
* minimum: 0,
|
|
109
|
-
* maximum: 999999.99,
|
|
110
|
-
* multipleOf: 0.01,
|
|
111
|
-
* example: 1234.56
|
|
112
|
-
* });
|
|
113
|
-
*
|
|
114
|
-
* // Used in financial applications
|
|
115
|
-
* const transaction = new OasObject({
|
|
116
|
-
* properties: {
|
|
117
|
-
* amount: currencySchema,
|
|
118
|
-
* currency: new OasString({ enum: ['USD', 'EUR', 'GBP'] })
|
|
119
|
-
* }
|
|
120
|
-
* });
|
|
121
|
-
* ```
|
|
122
|
-
*
|
|
123
|
-
* @example Coordinate system
|
|
124
|
-
* ```typescript
|
|
125
|
-
* const latitudeSchema = new OasNumber({
|
|
126
|
-
* title: 'Latitude',
|
|
127
|
-
* description: 'Geographic latitude coordinate',
|
|
128
|
-
* format: 'double',
|
|
129
|
-
* minimum: -90,
|
|
130
|
-
* maximum: 90,
|
|
131
|
-
* example: 40.7128
|
|
132
|
-
* });
|
|
133
|
-
*
|
|
134
|
-
* const longitudeSchema = new OasNumber({
|
|
135
|
-
* title: 'Longitude',
|
|
136
|
-
* description: 'Geographic longitude coordinate',
|
|
137
|
-
* format: 'double',
|
|
138
|
-
* minimum: -180,
|
|
139
|
-
* maximum: 180,
|
|
140
|
-
* example: -74.0060
|
|
141
|
-
* });
|
|
142
|
-
*
|
|
143
|
-
* // Used for location data
|
|
144
|
-
* ```
|
|
145
|
-
*
|
|
146
|
-
* @example Probability and statistics
|
|
147
|
-
* ```typescript
|
|
148
|
-
* const probabilitySchema = new OasNumber({
|
|
149
|
-
* title: 'Probability',
|
|
150
|
-
* description: 'Statistical probability value',
|
|
151
|
-
* minimum: 0,
|
|
152
|
-
* maximum: 1,
|
|
153
|
-
* exclusiveMaximum: false, // Can be exactly 1
|
|
154
|
-
* example: 0.75,
|
|
155
|
-
* default: 0.5
|
|
156
|
-
* });
|
|
157
|
-
*
|
|
158
|
-
* const confidenceSchema = new OasNumber({
|
|
159
|
-
* title: 'Confidence Level',
|
|
160
|
-
* description: 'Statistical confidence level as percentage',
|
|
161
|
-
* minimum: 0,
|
|
162
|
-
* maximum: 100,
|
|
163
|
-
* enums: [90, 95, 99], // Common confidence levels
|
|
164
|
-
* example: 95
|
|
165
|
-
* });
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
4
|
class OasNumber {
|
|
169
5
|
constructor(fields = {}) {
|
|
170
6
|
/**
|
|
@@ -301,6 +137,33 @@ class OasNumber {
|
|
|
301
137
|
writable: true,
|
|
302
138
|
value: void 0
|
|
303
139
|
});
|
|
140
|
+
/**
|
|
141
|
+
* Whether the number is read-only.
|
|
142
|
+
*/
|
|
143
|
+
Object.defineProperty(this, "readOnly", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
configurable: true,
|
|
146
|
+
writable: true,
|
|
147
|
+
value: void 0
|
|
148
|
+
});
|
|
149
|
+
/**
|
|
150
|
+
* Whether the number is write-only.
|
|
151
|
+
*/
|
|
152
|
+
Object.defineProperty(this, "writeOnly", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
configurable: true,
|
|
155
|
+
writable: true,
|
|
156
|
+
value: void 0
|
|
157
|
+
});
|
|
158
|
+
/**
|
|
159
|
+
* Whether the number is deprecated.
|
|
160
|
+
*/
|
|
161
|
+
Object.defineProperty(this, "deprecated", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
configurable: true,
|
|
164
|
+
writable: true,
|
|
165
|
+
value: void 0
|
|
166
|
+
});
|
|
304
167
|
this.title = fields.title;
|
|
305
168
|
this.description = fields.description;
|
|
306
169
|
this.nullable = fields.nullable;
|
|
@@ -314,6 +177,9 @@ class OasNumber {
|
|
|
314
177
|
this.exclusiveMaximum = fields.exclusiveMaximum;
|
|
315
178
|
this.minimum = fields.minimum;
|
|
316
179
|
this.exclusiveMinimum = fields.exclusiveMinimum;
|
|
180
|
+
this.readOnly = fields.readOnly;
|
|
181
|
+
this.writeOnly = fields.writeOnly;
|
|
182
|
+
this.deprecated = fields.deprecated;
|
|
317
183
|
}
|
|
318
184
|
isRef() {
|
|
319
185
|
return false;
|
|
@@ -338,7 +204,9 @@ class OasNumber {
|
|
|
338
204
|
maximum: this.maximum,
|
|
339
205
|
exclusiveMaximum: this.exclusiveMaximum,
|
|
340
206
|
minimum: this.minimum,
|
|
341
|
-
exclusiveMinimum: this.exclusiveMinimum
|
|
207
|
+
exclusiveMinimum: this.exclusiveMinimum,
|
|
208
|
+
readOnly: this.readOnly,
|
|
209
|
+
writeOnly: this.writeOnly
|
|
342
210
|
};
|
|
343
211
|
}
|
|
344
212
|
}
|
|
@@ -5,14 +5,31 @@ import * as v from 'valibot';
|
|
|
5
5
|
* Defines the precision formats for number types: float for single-precision
|
|
6
6
|
* and double for double-precision floating-point numbers.
|
|
7
7
|
*/
|
|
8
|
-
export declare const numberFormat: v.
|
|
8
|
+
export declare const numberFormat: v.UnionSchema<[v.LiteralSchema<"float", undefined>, v.LiteralSchema<"double", undefined>], undefined>;
|
|
9
9
|
/**
|
|
10
10
|
* Valibot schema for validating OpenAPI number data objects.
|
|
11
11
|
*
|
|
12
12
|
* Validates number schemas including precision formats, range constraints,
|
|
13
13
|
* multiple validation, and enumeration values.
|
|
14
14
|
*/
|
|
15
|
-
export declare const oasNumberData: v.
|
|
15
|
+
export declare const oasNumberData: v.ObjectSchema<{
|
|
16
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
17
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly default: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
20
|
+
readonly format: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"float", undefined>, v.LiteralSchema<"double", undefined>], undefined>, undefined>;
|
|
21
|
+
readonly enum: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
22
|
+
readonly nullable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
23
|
+
readonly example: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
+
readonly multipleOf: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
25
|
+
readonly maximum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
26
|
+
readonly exclusiveMaximum: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
27
|
+
readonly minimum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
28
|
+
readonly exclusiveMinimum: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
29
|
+
readonly readOnly: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
30
|
+
readonly writeOnly: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
31
|
+
readonly deprecated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
16
33
|
export type OasNumberData = {
|
|
17
34
|
type: 'number';
|
|
18
35
|
title?: string;
|
|
@@ -27,5 +44,8 @@ export type OasNumberData = {
|
|
|
27
44
|
exclusiveMaximum?: boolean;
|
|
28
45
|
minimum?: number;
|
|
29
46
|
exclusiveMinimum?: boolean;
|
|
47
|
+
readOnly?: boolean;
|
|
48
|
+
writeOnly?: boolean;
|
|
49
|
+
deprecated?: boolean;
|
|
30
50
|
};
|
|
31
51
|
//# sourceMappingURL=number-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-types.d.ts","sourceRoot":"","sources":["../../../src/oas/number/number-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"number-types.d.ts","sourceRoot":"","sources":["../../../src/oas/number/number-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B;;;;;GAKG;AACH,eAAO,MAAM,YAAY,uGAAqD,CAAA;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;aAiBxB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
|
|
@@ -61,5 +61,8 @@ exports.oasNumberData = v.object({
|
|
|
61
61
|
maximum: v.optional(v.number()),
|
|
62
62
|
exclusiveMaximum: v.optional(v.boolean()),
|
|
63
63
|
minimum: v.optional(v.number()),
|
|
64
|
-
exclusiveMinimum: v.optional(v.boolean())
|
|
64
|
+
exclusiveMinimum: v.optional(v.boolean()),
|
|
65
|
+
readOnly: v.optional(v.boolean()),
|
|
66
|
+
writeOnly: v.optional(v.boolean()),
|
|
67
|
+
deprecated: v.optional(v.boolean())
|
|
65
68
|
});
|