@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/Array.js
CHANGED
|
@@ -1,105 +1,4 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
|
-
/**
|
|
3
|
-
* Represents an array schema in the OpenAPI Specification.
|
|
4
|
-
*
|
|
5
|
-
* `OasArray` handles array type definitions with comprehensive validation
|
|
6
|
-
* constraints including item count limits, uniqueness requirements, and
|
|
7
|
-
* item type specifications. It supports nested schemas and references
|
|
8
|
-
* for complex array structures.
|
|
9
|
-
*
|
|
10
|
-
* This class is used throughout the OAS processing pipeline to represent
|
|
11
|
-
* array fields in API schemas, including lists of objects, primitive arrays,
|
|
12
|
-
* and complex nested array structures.
|
|
13
|
-
*
|
|
14
|
-
* ## Key Features
|
|
15
|
-
*
|
|
16
|
-
* - **Item Type Definition**: Support for any schema type as array items
|
|
17
|
-
* - **Size Constraints**: Minimum and maximum item count validation
|
|
18
|
-
* - **Uniqueness Validation**: Ensure array items are unique (like Set behavior)
|
|
19
|
-
* - **Nested Schemas**: Support for complex nested array structures
|
|
20
|
-
* - **Reference Handling**: Seamless integration with schema references
|
|
21
|
-
* - **Nullable Support**: Type-safe nullable array handling
|
|
22
|
-
* - **JSON Schema**: Conversion to standard JSON Schema format
|
|
23
|
-
*
|
|
24
|
-
* @template Nullable - Whether the array value can be null
|
|
25
|
-
*
|
|
26
|
-
* @example String array
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import { OasArray, OasString } from '@skmtc/core';
|
|
29
|
-
*
|
|
30
|
-
* const tagsArray = new OasArray({
|
|
31
|
-
* title: 'Tags',
|
|
32
|
-
* description: 'List of tags associated with the item',
|
|
33
|
-
* items: new OasString({ minLength: 1 }),
|
|
34
|
-
* minItems: 1,
|
|
35
|
-
* uniqueItems: true,
|
|
36
|
-
* example: ['javascript', 'typescript', 'react']
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @example Object array with references
|
|
41
|
-
* ```typescript
|
|
42
|
-
* import { OasArray, OasRef } from '@skmtc/core';
|
|
43
|
-
*
|
|
44
|
-
* const usersArray = new OasArray({
|
|
45
|
-
* title: 'Users',
|
|
46
|
-
* description: 'List of user objects',
|
|
47
|
-
* items: new OasRef({ refName: 'User' }),
|
|
48
|
-
* maxItems: 100,
|
|
49
|
-
* example: [
|
|
50
|
-
* { id: 1, name: 'John' },
|
|
51
|
-
* { id: 2, name: 'Jane' }
|
|
52
|
-
* ]
|
|
53
|
-
* });
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* @example Nested array (array of arrays)
|
|
57
|
-
* ```typescript
|
|
58
|
-
* const matrixArray = new OasArray({
|
|
59
|
-
* title: 'Matrix',
|
|
60
|
-
* description: '2D array of numbers',
|
|
61
|
-
* items: new OasArray({
|
|
62
|
-
* items: new OasInteger({ minimum: 0 })
|
|
63
|
-
* }),
|
|
64
|
-
* example: [
|
|
65
|
-
* [1, 2, 3],
|
|
66
|
-
* [4, 5, 6],
|
|
67
|
-
* [7, 8, 9]
|
|
68
|
-
* ]
|
|
69
|
-
* });
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* @example Nullable array with constraints
|
|
73
|
-
* ```typescript
|
|
74
|
-
* const optionalIdsArray = new OasArray<true>({
|
|
75
|
-
* title: 'Optional IDs',
|
|
76
|
-
* description: 'Optional list of IDs',
|
|
77
|
-
* items: new OasInteger({ format: 'int64', minimum: 1 }),
|
|
78
|
-
* nullable: true,
|
|
79
|
-
* minItems: 0,
|
|
80
|
-
* maxItems: 10,
|
|
81
|
-
* defaultValue: null
|
|
82
|
-
* });
|
|
83
|
-
* ```
|
|
84
|
-
*
|
|
85
|
-
* @example Unique items validation
|
|
86
|
-
* ```typescript
|
|
87
|
-
* const uniqueEmailsArray = new OasArray({
|
|
88
|
-
* title: 'Email Recipients',
|
|
89
|
-
* description: 'List of unique email addresses',
|
|
90
|
-
* items: new OasString({ format: 'email' }),
|
|
91
|
-
* uniqueItems: true, // Ensures no duplicate emails
|
|
92
|
-
* minItems: 1,
|
|
93
|
-
* example: ['user1@example.com', 'user2@example.com']
|
|
94
|
-
* });
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
1
|
export class OasArray {
|
|
98
|
-
/**
|
|
99
|
-
* Creates a new OasArray instance.
|
|
100
|
-
*
|
|
101
|
-
* @param fields - Array configuration fields including items schema, validation constraints, and metadata
|
|
102
|
-
*/
|
|
103
2
|
constructor(fields) {
|
|
104
3
|
/**
|
|
105
4
|
* Object is part the 'schema' set which is used
|
|
@@ -217,6 +116,38 @@ export class OasArray {
|
|
|
217
116
|
writable: true,
|
|
218
117
|
value: void 0
|
|
219
118
|
});
|
|
119
|
+
/**
|
|
120
|
+
* Creates a new OasArray instance.
|
|
121
|
+
*
|
|
122
|
+
* @param fields - Array configuration fields including items schema, validation constraints, and metadata
|
|
123
|
+
*/
|
|
124
|
+
/**
|
|
125
|
+
* Whether the array is read-only.
|
|
126
|
+
*/
|
|
127
|
+
Object.defineProperty(this, "readOnly", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
configurable: true,
|
|
130
|
+
writable: true,
|
|
131
|
+
value: void 0
|
|
132
|
+
});
|
|
133
|
+
/**
|
|
134
|
+
* Whether the array is write-only.
|
|
135
|
+
*/
|
|
136
|
+
Object.defineProperty(this, "writeOnly", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
configurable: true,
|
|
139
|
+
writable: true,
|
|
140
|
+
value: void 0
|
|
141
|
+
});
|
|
142
|
+
/**
|
|
143
|
+
* Whether the array is deprecated.
|
|
144
|
+
*/
|
|
145
|
+
Object.defineProperty(this, "deprecated", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
configurable: true,
|
|
148
|
+
writable: true,
|
|
149
|
+
value: void 0
|
|
150
|
+
});
|
|
220
151
|
this.items = fields.items;
|
|
221
152
|
this.title = fields.title;
|
|
222
153
|
this.description = fields.description;
|
|
@@ -228,6 +159,9 @@ export class OasArray {
|
|
|
228
159
|
this.minItems = fields.minItems;
|
|
229
160
|
this.enums = fields.enums;
|
|
230
161
|
this.defaultValue = fields.defaultValue;
|
|
162
|
+
this.readOnly = fields.readOnly;
|
|
163
|
+
this.writeOnly = fields.writeOnly;
|
|
164
|
+
this.deprecated = fields.deprecated;
|
|
231
165
|
}
|
|
232
166
|
/**
|
|
233
167
|
* Determines if this array is a reference object.
|
|
@@ -271,7 +205,9 @@ export class OasArray {
|
|
|
271
205
|
maxItems: this.maxItems,
|
|
272
206
|
minItems: this.minItems,
|
|
273
207
|
uniqueItems: this.uniqueItems,
|
|
274
|
-
default: this.defaultValue
|
|
208
|
+
default: this.defaultValue,
|
|
209
|
+
readOnly: this.readOnly,
|
|
210
|
+
writeOnly: this.writeOnly
|
|
275
211
|
};
|
|
276
212
|
}
|
|
277
213
|
}
|
|
@@ -1,69 +1,4 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
import { type OasSchemaData } from '../schema/schema-types.js';
|
|
3
|
-
import { type OasSchemaRefData } from '../ref/ref-types.js';
|
|
4
|
-
/**
|
|
5
|
-
* Valibot schema for validating OpenAPI array data objects.
|
|
6
|
-
*
|
|
7
|
-
* This comprehensive schema validates OpenAPI array schemas according to the OpenAPI v3
|
|
8
|
-
* specification, including item type definitions, length constraints, uniqueness requirements,
|
|
9
|
-
* and enumeration values. It uses lazy evaluation to handle recursive schema references,
|
|
10
|
-
* allowing for complex nested array structures and self-referential schemas.
|
|
11
|
-
*
|
|
12
|
-
* The schema supports both direct schema definitions and reference objects for the items
|
|
13
|
-
* property, enabling flexible array type definitions that can reference other schemas
|
|
14
|
-
* in the document or define inline item types.
|
|
15
|
-
*
|
|
16
|
-
* @example Validating a simple array schema
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import { oasArrayData } from '@skmtc/core/oas/array';
|
|
19
|
-
* import * as v from 'valibot';
|
|
20
|
-
*
|
|
21
|
-
* const schema = {
|
|
22
|
-
* type: 'array',
|
|
23
|
-
* items: {
|
|
24
|
-
* type: 'string'
|
|
25
|
-
* },
|
|
26
|
-
* description: 'List of user names',
|
|
27
|
-
* minItems: 1,
|
|
28
|
-
* maxItems: 100
|
|
29
|
-
* };
|
|
30
|
-
*
|
|
31
|
-
* const validated = v.parse(oasArrayData, schema);
|
|
32
|
-
* console.log(validated.minItems); // 1
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @example Validating array with reference items
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const refArraySchema = {
|
|
38
|
-
* type: 'array',
|
|
39
|
-
* items: {
|
|
40
|
-
* $ref: '#/components/schemas/User'
|
|
41
|
-
* },
|
|
42
|
-
* title: 'User List',
|
|
43
|
-
* uniqueItems: true,
|
|
44
|
-
* default: []
|
|
45
|
-
* };
|
|
46
|
-
*
|
|
47
|
-
* const result = v.parse(oasArrayData, refArraySchema);
|
|
48
|
-
* console.log(result.uniqueItems); // true
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @example Validating constrained arrays
|
|
52
|
-
* ```typescript
|
|
53
|
-
* const constrainedArray = {
|
|
54
|
-
* type: 'array',
|
|
55
|
-
* items: { type: 'number' },
|
|
56
|
-
* minItems: 2,
|
|
57
|
-
* maxItems: 10,
|
|
58
|
-
* uniqueItems: true,
|
|
59
|
-
* enums: [[1, 2, 3], [4, 5, 6]]
|
|
60
|
-
* };
|
|
61
|
-
*
|
|
62
|
-
* const validated = v.parse(oasArrayData, constrainedArray);
|
|
63
|
-
* console.log(validated.maxItems); // 10
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export declare const oasArrayData: v.GenericSchema<OasArrayData>;
|
|
67
2
|
/**
|
|
68
3
|
* Valibot schema for array data without the items property.
|
|
69
4
|
*
|
|
@@ -108,115 +43,6 @@ export declare const oasArrayData: v.GenericSchema<OasArrayData>;
|
|
|
108
43
|
* ```
|
|
109
44
|
*/
|
|
110
45
|
export declare const oasArrayDataWithoutItems: v.GenericSchema<OasArrayDataWithoutItems>;
|
|
111
|
-
/**
|
|
112
|
-
* Data type for OpenAPI array schema objects.
|
|
113
|
-
*
|
|
114
|
-
* Represents the complete structure of OpenAPI array schemas as processed by the SKMTC
|
|
115
|
-
* pipeline. This type includes all standard OpenAPI array schema properties including
|
|
116
|
-
* item type specifications, length constraints, uniqueness requirements, and metadata
|
|
117
|
-
* fields. It's used throughout the array processing pipeline for type-safe handling
|
|
118
|
-
* of array schema definitions.
|
|
119
|
-
*
|
|
120
|
-
* ## Usage in SKMTC Pipeline
|
|
121
|
-
*
|
|
122
|
-
* This type is used by:
|
|
123
|
-
* - Schema parsers to validate incoming array schema data
|
|
124
|
-
* - Array processors to transform OpenAPI schemas into OAS objects
|
|
125
|
-
* - Code generators to access array constraints and generate validation code
|
|
126
|
-
* - Type generators to create appropriate array type definitions
|
|
127
|
-
*
|
|
128
|
-
* @example Basic string array schema
|
|
129
|
-
* ```typescript
|
|
130
|
-
* import type { OasArrayData } from '@skmtc/core/oas/array';
|
|
131
|
-
*
|
|
132
|
-
* const tagListSchema: OasArrayData = {
|
|
133
|
-
* type: 'array',
|
|
134
|
-
* items: {
|
|
135
|
-
* type: 'string',
|
|
136
|
-
* minLength: 1,
|
|
137
|
-
* maxLength: 50
|
|
138
|
-
* },
|
|
139
|
-
* title: 'Tag List',
|
|
140
|
-
* description: 'Collection of tags for categorization',
|
|
141
|
-
* minItems: 0,
|
|
142
|
-
* maxItems: 20,
|
|
143
|
-
* uniqueItems: true,
|
|
144
|
-
* default: []
|
|
145
|
-
* };
|
|
146
|
-
* ```
|
|
147
|
-
*
|
|
148
|
-
* @example Array of referenced objects
|
|
149
|
-
* ```typescript
|
|
150
|
-
* const userListSchema: OasArrayData = {
|
|
151
|
-
* type: 'array',
|
|
152
|
-
* items: {
|
|
153
|
-
* $ref: '#/components/schemas/User'
|
|
154
|
-
* },
|
|
155
|
-
* title: 'User Collection',
|
|
156
|
-
* description: 'List of user objects',
|
|
157
|
-
* minItems: 1,
|
|
158
|
-
* default: []
|
|
159
|
-
* };
|
|
160
|
-
* ```
|
|
161
|
-
*
|
|
162
|
-
* @example Complex nested array schema
|
|
163
|
-
* ```typescript
|
|
164
|
-
* const matrixSchema: OasArrayData = {
|
|
165
|
-
* type: 'array',
|
|
166
|
-
* items: {
|
|
167
|
-
* type: 'array',
|
|
168
|
-
* items: {
|
|
169
|
-
* type: 'number'
|
|
170
|
-
* },
|
|
171
|
-
* minItems: 3,
|
|
172
|
-
* maxItems: 3
|
|
173
|
-
* },
|
|
174
|
-
* title: '3x3 Matrix',
|
|
175
|
-
* description: 'Two-dimensional number array representing a 3x3 matrix',
|
|
176
|
-
* minItems: 3,
|
|
177
|
-
* maxItems: 3
|
|
178
|
-
* };
|
|
179
|
-
* ```
|
|
180
|
-
*
|
|
181
|
-
* @example Enum array with constraints
|
|
182
|
-
* ```typescript
|
|
183
|
-
* const statusListSchema: OasArrayData = {
|
|
184
|
-
* type: 'array',
|
|
185
|
-
* items: {
|
|
186
|
-
* type: 'string',
|
|
187
|
-
* enum: ['active', 'inactive', 'pending']
|
|
188
|
-
* },
|
|
189
|
-
* title: 'Status List',
|
|
190
|
-
* description: 'Multiple status values',
|
|
191
|
-
* uniqueItems: true,
|
|
192
|
-
* enums: [
|
|
193
|
-
* ['active'],
|
|
194
|
-
* ['active', 'pending'],
|
|
195
|
-
* ['inactive', 'pending']
|
|
196
|
-
* ]
|
|
197
|
-
* };
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
export type OasArrayData = {
|
|
201
|
-
/** Type identifier (always 'array') */
|
|
202
|
-
type: 'array';
|
|
203
|
-
/** Schema definition for array items (can be direct schema or reference) */
|
|
204
|
-
items: OasSchemaData | OasSchemaRefData;
|
|
205
|
-
/** Human-readable title for the array schema */
|
|
206
|
-
title?: string;
|
|
207
|
-
/** Detailed description explaining the array's purpose and contents */
|
|
208
|
-
description?: string;
|
|
209
|
-
/** Default value used when no explicit array is provided */
|
|
210
|
-
default?: unknown[];
|
|
211
|
-
/** Maximum number of items allowed in the array */
|
|
212
|
-
maxItems?: number;
|
|
213
|
-
/** Minimum number of items required in the array */
|
|
214
|
-
minItems?: number;
|
|
215
|
-
/** Whether all items in the array must be unique */
|
|
216
|
-
uniqueItems?: boolean;
|
|
217
|
-
/** Array of valid enumeration values for the entire array */
|
|
218
|
-
enums?: unknown[];
|
|
219
|
-
};
|
|
220
46
|
/**
|
|
221
47
|
* Array schema data without the items property.
|
|
222
48
|
*
|
|
@@ -279,5 +105,11 @@ export type OasArrayDataWithoutItems = {
|
|
|
279
105
|
uniqueItems?: boolean;
|
|
280
106
|
/** Array of valid enumeration values for the entire array */
|
|
281
107
|
enums?: unknown[];
|
|
108
|
+
/** Whether the array is read-only */
|
|
109
|
+
readOnly?: boolean;
|
|
110
|
+
/** Whether the array is write-only */
|
|
111
|
+
writeOnly?: boolean;
|
|
112
|
+
/** Whether the array is deprecated */
|
|
113
|
+
deprecated?: boolean;
|
|
282
114
|
};
|
|
283
115
|
//# sourceMappingURL=array-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-types.d.ts","sourceRoot":"","sources":["../../../src/oas/array/array-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"array-types.d.ts","sourceRoot":"","sources":["../../../src/oas/array/array-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,wBAAwB,CAY7E,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,uCAAuC;IACvC,IAAI,EAAE,OAAO,CAAA;IACb,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oDAAoD;IACpD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
|
|
@@ -1,79 +1,4 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
import { oasSchemaData } from '../schema/schema-types.js';
|
|
3
|
-
import { oasSchemaRefData } from '../ref/ref-types.js';
|
|
4
|
-
/**
|
|
5
|
-
* Valibot schema for validating OpenAPI array data objects.
|
|
6
|
-
*
|
|
7
|
-
* This comprehensive schema validates OpenAPI array schemas according to the OpenAPI v3
|
|
8
|
-
* specification, including item type definitions, length constraints, uniqueness requirements,
|
|
9
|
-
* and enumeration values. It uses lazy evaluation to handle recursive schema references,
|
|
10
|
-
* allowing for complex nested array structures and self-referential schemas.
|
|
11
|
-
*
|
|
12
|
-
* The schema supports both direct schema definitions and reference objects for the items
|
|
13
|
-
* property, enabling flexible array type definitions that can reference other schemas
|
|
14
|
-
* in the document or define inline item types.
|
|
15
|
-
*
|
|
16
|
-
* @example Validating a simple array schema
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import { oasArrayData } from '@skmtc/core/oas/array';
|
|
19
|
-
* import * as v from 'valibot';
|
|
20
|
-
*
|
|
21
|
-
* const schema = {
|
|
22
|
-
* type: 'array',
|
|
23
|
-
* items: {
|
|
24
|
-
* type: 'string'
|
|
25
|
-
* },
|
|
26
|
-
* description: 'List of user names',
|
|
27
|
-
* minItems: 1,
|
|
28
|
-
* maxItems: 100
|
|
29
|
-
* };
|
|
30
|
-
*
|
|
31
|
-
* const validated = v.parse(oasArrayData, schema);
|
|
32
|
-
* console.log(validated.minItems); // 1
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @example Validating array with reference items
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const refArraySchema = {
|
|
38
|
-
* type: 'array',
|
|
39
|
-
* items: {
|
|
40
|
-
* $ref: '#/components/schemas/User'
|
|
41
|
-
* },
|
|
42
|
-
* title: 'User List',
|
|
43
|
-
* uniqueItems: true,
|
|
44
|
-
* default: []
|
|
45
|
-
* };
|
|
46
|
-
*
|
|
47
|
-
* const result = v.parse(oasArrayData, refArraySchema);
|
|
48
|
-
* console.log(result.uniqueItems); // true
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @example Validating constrained arrays
|
|
52
|
-
* ```typescript
|
|
53
|
-
* const constrainedArray = {
|
|
54
|
-
* type: 'array',
|
|
55
|
-
* items: { type: 'number' },
|
|
56
|
-
* minItems: 2,
|
|
57
|
-
* maxItems: 10,
|
|
58
|
-
* uniqueItems: true,
|
|
59
|
-
* enums: [[1, 2, 3], [4, 5, 6]]
|
|
60
|
-
* };
|
|
61
|
-
*
|
|
62
|
-
* const validated = v.parse(oasArrayData, constrainedArray);
|
|
63
|
-
* console.log(validated.maxItems); // 10
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export const oasArrayData = v.object({
|
|
67
|
-
type: v.literal('array'),
|
|
68
|
-
items: v.lazy(() => v.union([v.lazy(() => oasSchemaData), oasSchemaRefData])),
|
|
69
|
-
title: v.optional(v.string()),
|
|
70
|
-
description: v.optional(v.string()),
|
|
71
|
-
default: v.optional(v.array(v.unknown())),
|
|
72
|
-
maxItems: v.optional(v.number()),
|
|
73
|
-
minItems: v.optional(v.number()),
|
|
74
|
-
uniqueItems: v.optional(v.boolean()),
|
|
75
|
-
enums: v.optional(v.array(v.unknown()))
|
|
76
|
-
});
|
|
77
2
|
/**
|
|
78
3
|
* Valibot schema for array data without the items property.
|
|
79
4
|
*
|
|
@@ -125,5 +50,8 @@ export const oasArrayDataWithoutItems = v.object({
|
|
|
125
50
|
maxItems: v.optional(v.number()),
|
|
126
51
|
minItems: v.optional(v.number()),
|
|
127
52
|
uniqueItems: v.optional(v.boolean()),
|
|
128
|
-
enums: v.optional(v.array(v.unknown()))
|
|
53
|
+
enums: v.optional(v.array(v.unknown())),
|
|
54
|
+
readOnly: v.optional(v.boolean()),
|
|
55
|
+
writeOnly: v.optional(v.boolean()),
|
|
56
|
+
deprecated: v.optional(v.boolean())
|
|
129
57
|
});
|
|
@@ -73,58 +73,6 @@ type ToParsedArrayArgs<Nullable extends boolean | undefined> = {
|
|
|
73
73
|
enums: Nullable extends true ? (unknown[] | null)[] | undefined : unknown[] | undefined;
|
|
74
74
|
defaultValue: Nullable extends true ? unknown[] | null | undefined : unknown[] | undefined;
|
|
75
75
|
};
|
|
76
|
-
/**
|
|
77
|
-
* Creates an OAS array instance from pre-parsed array schema components.
|
|
78
|
-
*
|
|
79
|
-
* This function is the final step in the array transformation pipeline, taking
|
|
80
|
-
* already-parsed nullable, example, enum, and default values and combining them
|
|
81
|
-
* with the remaining array properties to create the complete OasArray instance.
|
|
82
|
-
*
|
|
83
|
-
* The function handles type-safe nullable parsing, items schema resolution,
|
|
84
|
-
* and specification extension processing. It uses Valibot for schema validation
|
|
85
|
-
* and maintains proper type relationships between nullable flags and value types.
|
|
86
|
-
*
|
|
87
|
-
* @template Nullable - Boolean type indicating if the array can be null
|
|
88
|
-
* @param args - Pre-parsed array components
|
|
89
|
-
* @param args.value - OpenAPI array object without parsed fields
|
|
90
|
-
* @param args.context - Parse context for tracing and utilities
|
|
91
|
-
* @param args.nullable - Parsed nullable flag
|
|
92
|
-
* @param args.example - Parsed example value (type-safe with nullable)
|
|
93
|
-
* @param args.enums - Parsed enumeration constraints (type-safe with nullable)
|
|
94
|
-
* @param args.defaultValue - Parsed default value (type-safe with nullable)
|
|
95
|
-
* @returns Complete OAS array instance with all properties
|
|
96
|
-
*
|
|
97
|
-
* @example Type-safe nullable array
|
|
98
|
-
* ```typescript
|
|
99
|
-
* const nullableArray = toParsedArray({
|
|
100
|
-
* context: parseContext,
|
|
101
|
-
* nullable: true,
|
|
102
|
-
* example: [1, 2, 3], // Can be null due to nullable: true
|
|
103
|
-
* enums: [[1], [2], null], // Null allowed in enums
|
|
104
|
-
* defaultValue: null,
|
|
105
|
-
* value: {
|
|
106
|
-
* type: 'array',
|
|
107
|
-
* items: { type: 'number' },
|
|
108
|
-
* maxItems: 5
|
|
109
|
-
* }
|
|
110
|
-
* });
|
|
111
|
-
* ```
|
|
112
|
-
*
|
|
113
|
-
* @example Non-nullable array
|
|
114
|
-
* ```typescript
|
|
115
|
-
* const regularArray = toParsedArray({
|
|
116
|
-
* context: parseContext,
|
|
117
|
-
* nullable: false,
|
|
118
|
-
* example: ['a', 'b'], // Cannot be null
|
|
119
|
-
* enums: [['x'], ['y']], // No null values allowed
|
|
120
|
-
* defaultValue: [],
|
|
121
|
-
* value: {
|
|
122
|
-
* type: 'array',
|
|
123
|
-
* items: { type: 'string' }
|
|
124
|
-
* }
|
|
125
|
-
* });
|
|
126
|
-
* ```
|
|
127
|
-
*/
|
|
128
76
|
export declare const toParsedArray: <Nullable extends boolean | undefined>({ context, nullable, example, enums, defaultValue, value }: ToParsedArrayArgs<Nullable>) => OasArray<Nullable>;
|
|
129
77
|
export {};
|
|
130
78
|
//# sourceMappingURL=toArray.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toArray.d.ts","sourceRoot":"","sources":["../../../src/oas/array/toArray.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"toArray.d.ts","sourceRoot":"","sources":["../../../src/oas/array/toArray.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,CAAC,iBAAiB,CAAA;IAClC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,eAAO,MAAM,OAAO,GAAI,oBAAoB,WAAW,KAAG,QA8CzD,CAAA;AAED,KAAK,iBAAiB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC7D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAA;IACtF,OAAO,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACrF,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACvF,YAAY,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;CAC3F,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,4DAOjE,iBAAiB,CAAC,QAAQ,CAAC,KAAG,QAAQ,CAAC,QAAQ,CAkDjD,CAAA"}
|