@skmtc/core 0.0.926 → 0.0.929
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/app/validate.d.ts +0 -1
- package/esm/app/validate.d.ts.map +1 -1
- package/esm/app/validate.js +0 -1
- package/esm/context/CoreContext.d.ts +1 -1
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +7 -6
- package/esm/context/GenerateContext.d.ts +1 -1
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +4 -5
- package/esm/context/ParseContext.d.ts +1 -134
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +11 -157
- package/esm/context/RenderContext.d.ts +1 -6
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +9 -19
- package/esm/context/StackTrail.d.ts +0 -172
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/StackTrail.js +1 -195
- package/esm/dsl/Stringable.d.ts +0 -1
- package/esm/dsl/Stringable.d.ts.map +1 -1
- package/esm/dsl/Stringable.js +1 -76
- package/esm/dsl/model/toModelBase.d.ts +2 -3
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.js +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts +2 -2
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.js +1 -1
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.js +1 -1
- package/esm/helpers/ResultsLog.js +1 -1
- package/esm/helpers/collateExamples.d.ts +0 -1
- package/esm/helpers/collateExamples.d.ts.map +1 -1
- package/esm/helpers/collateExamples.js +0 -1
- package/esm/helpers/formatNumber.d.ts +0 -1
- package/esm/helpers/formatNumber.d.ts.map +1 -1
- package/esm/helpers/formatNumber.js +0 -1
- package/esm/helpers/isEmpty.d.ts +0 -60
- package/esm/helpers/isEmpty.d.ts.map +1 -1
- package/esm/helpers/isEmpty.js +1 -61
- package/esm/helpers/naming.js +2 -2
- package/esm/helpers/refFns.d.ts +0 -1
- package/esm/helpers/refFns.d.ts.map +1 -1
- package/esm/helpers/refFns.js +0 -1
- package/esm/helpers/strings.d.ts +0 -1
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/strings.js +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +0 -1
- package/esm/helpers/tracer.d.ts +1 -2
- package/esm/helpers/tracer.d.ts.map +1 -1
- package/esm/helpers/tracer.js +1 -1
- package/esm/mod.d.ts +0 -13
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +0 -13
- package/esm/oas/_helpers/parseEnum.d.ts +8 -136
- package/esm/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/esm/oas/_helpers/parseEnum.js +21 -119
- package/esm/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/esm/oas/_helpers/parseNullable.js +16 -6
- package/esm/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/esm/oas/array/Array.d.ts +18 -96
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +38 -102
- package/esm/oas/array/array-types.d.ts +6 -174
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +4 -76
- package/esm/oas/array/toArray.d.ts +0 -52
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/array/toArray.js +67 -72
- package/esm/oas/boolean/Boolean.d.ts +12 -133
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +28 -134
- package/esm/oas/boolean/boolean-types.d.ts +14 -1
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
- package/esm/oas/boolean/boolean-types.js +4 -1
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +75 -19
- package/esm/oas/components/Components.d.ts +0 -2
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +0 -2
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
- package/esm/oas/components/toComponentsV3.js +7 -9
- package/esm/oas/discriminator/Discriminator.d.ts +0 -1
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +0 -1
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/esm/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/esm/oas/document/Document.d.ts +5 -1
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +7 -1
- package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/esm/oas/document/toDocumentFieldsV3.js +11 -8
- package/esm/oas/example/Example.d.ts +10 -85
- package/esm/oas/example/Example.d.ts.map +1 -1
- package/esm/oas/example/Example.js +36 -105
- package/esm/oas/example/toExamplesV3.d.ts +1 -1
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +13 -8
- package/esm/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/ExternalDocs.js +18 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/esm/oas/externalDocs/externalDocsTypes.js +6 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/toExternalDocs.js +15 -0
- package/esm/oas/header/Header.d.ts +6 -6
- package/esm/oas/header/Header.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.js +9 -5
- package/esm/oas/info/Info.d.ts +0 -1
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +0 -1
- package/esm/oas/integer/Integer.d.ts +18 -81
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +33 -82
- package/esm/oas/integer/integer-types.d.ts +21 -1
- package/esm/oas/integer/integer-types.d.ts.map +1 -1
- package/esm/oas/integer/integer-types.js +8 -2
- package/esm/oas/integer/toInteger.d.ts.map +1 -1
- package/esm/oas/integer/toInteger.js +66 -19
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/esm/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/esm/oas/number/Number.d.ts +18 -164
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +33 -165
- package/esm/oas/number/number-types.d.ts +22 -2
- package/esm/oas/number/number-types.d.ts.map +1 -1
- package/esm/oas/number/number-types.js +4 -1
- package/esm/oas/number/toNumber.d.ts +0 -62
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +66 -81
- package/esm/oas/object/Object.d.ts +0 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +0 -1
- package/esm/oas/object/toObject.d.ts.map +1 -1
- package/esm/oas/object/toObject.js +38 -13
- package/esm/oas/operation/Operation.d.ts +9 -108
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +16 -108
- package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/oas/operation/toOperationsV3.js +12 -7
- package/esm/oas/parameter/Parameter.d.ts +12 -13
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +0 -3
- package/esm/oas/parameter/parameter-types.d.ts +0 -20
- package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
- package/esm/oas/parameter/parameter-types.js +0 -20
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.js +14 -11
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/esm/oas/pathItem/toPathItemV3.js +2 -1
- package/esm/oas/ref/Ref.d.ts +0 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +0 -1
- package/esm/oas/ref/toRefV31.d.ts.map +1 -1
- package/esm/oas/ref/toRefV31.js +4 -1
- package/esm/oas/requestBody/RequestBody.d.ts +0 -1
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +0 -1
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/esm/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/esm/oas/response/Response.d.ts +0 -1
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +0 -1
- package/esm/oas/response/toResponseV3.d.ts.map +1 -1
- package/esm/oas/response/toResponseV3.js +9 -8
- package/esm/oas/schema/Schema.d.ts +0 -1
- package/esm/oas/schema/Schema.d.ts.map +1 -1
- package/esm/oas/schema/Schema.js +1 -1
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/oas/schema/toSchemasV3.js +10 -16
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/esm/oas/server/Server.d.ts +0 -1
- package/esm/oas/server/Server.d.ts.map +1 -1
- package/esm/oas/server/Server.js +0 -1
- package/esm/oas/server/toServerV3.d.ts.map +1 -1
- package/esm/oas/server/toServerV3.js +2 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/esm/oas/string/String.d.ts +16 -88
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +33 -91
- package/esm/oas/string/string-types.d.ts +23 -80
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/string-types.js +6 -2
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/string/toString.js +68 -18
- package/esm/oas/tag/Tag.d.ts +0 -1
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +0 -1
- package/esm/oas/union/toUnion.d.ts.map +1 -1
- package/esm/oas/union/toUnion.js +6 -2
- package/esm/oas/unknown/Unknown.d.ts +3 -1
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +8 -1
- package/esm/oas/unknown/toUnknown.js +1 -1
- package/esm/oas/void/Void.d.ts +0 -1
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +0 -1
- package/esm/types/Brand.d.ts +0 -1
- package/esm/types/Brand.d.ts.map +1 -1
- package/esm/types/Brand.js +1 -10
- package/esm/types/CustomValue.d.ts +0 -1
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +0 -1
- package/esm/types/DenoJson.d.ts +0 -1
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +0 -1
- package/esm/types/EnrichmentRequest.d.ts +0 -1
- package/esm/types/EnrichmentRequest.d.ts.map +1 -1
- package/esm/types/EnrichmentRequest.js +1 -1
- package/esm/types/Enrichments.d.ts +0 -1
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +0 -1
- package/esm/types/GeneratorKeys.d.ts +0 -1
- package/esm/types/GeneratorKeys.d.ts.map +1 -1
- package/esm/types/GeneratorKeys.js +0 -1
- package/esm/types/Manifest.d.ts +0 -1
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +0 -1
- package/esm/types/Method.d.ts +0 -165
- package/esm/types/Method.d.ts.map +1 -1
- package/esm/types/Method.js +1 -141
- package/esm/types/ModuleExport.d.ts +0 -1
- package/esm/types/ModuleExport.d.ts.map +1 -1
- package/esm/types/ModuleExport.js +0 -1
- package/esm/types/PrettierConfig.d.ts +0 -1
- package/esm/types/PrettierConfig.d.ts.map +1 -1
- package/esm/types/PrettierConfig.js +0 -1
- package/esm/types/Preview.d.ts +0 -1
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +0 -1
- package/esm/types/RefName.d.ts +0 -1
- package/esm/types/RefName.d.ts.map +1 -1
- package/esm/types/RefName.js +1 -1
- package/esm/types/Results.d.ts +0 -1
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Results.js +0 -1
- package/esm/types/Settings.d.ts +0 -1
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +0 -1
- package/esm/types/TypeSystem.d.ts +0 -1
- package/esm/types/TypeSystem.d.ts.map +1 -1
- package/esm/types/TypeSystem.js +1 -1
- package/package.json +1 -9
- package/script/app/validate.d.ts +0 -1
- package/script/app/validate.d.ts.map +1 -1
- package/script/app/validate.js +0 -1
- package/script/context/CoreContext.d.ts +1 -1
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +7 -6
- package/script/context/GenerateContext.d.ts +1 -1
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +4 -38
- package/script/context/ParseContext.d.ts +1 -134
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +12 -192
- package/script/context/RenderContext.d.ts +1 -6
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +9 -52
- package/script/context/StackTrail.d.ts +0 -172
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/StackTrail.js +1 -195
- package/script/dsl/Stringable.d.ts +0 -1
- package/script/dsl/Stringable.d.ts.map +1 -1
- package/script/dsl/Stringable.js +0 -76
- package/script/dsl/model/toModelBase.d.ts +2 -3
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.js +5 -2
- package/script/dsl/operation/toOperationBase.d.ts +2 -2
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.js +5 -2
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.js +5 -2
- package/script/helpers/ResultsLog.js +5 -2
- package/script/helpers/collateExamples.d.ts +0 -1
- package/script/helpers/collateExamples.d.ts.map +1 -1
- package/script/helpers/collateExamples.js +0 -1
- package/script/helpers/formatNumber.d.ts +0 -1
- package/script/helpers/formatNumber.d.ts.map +1 -1
- package/script/helpers/formatNumber.js +0 -1
- package/script/helpers/isEmpty.d.ts +0 -60
- package/script/helpers/isEmpty.d.ts.map +1 -1
- package/script/helpers/isEmpty.js +1 -61
- package/script/helpers/naming.js +1 -1
- package/script/helpers/refFns.d.ts +0 -1
- package/script/helpers/refFns.d.ts.map +1 -1
- package/script/helpers/refFns.js +0 -1
- package/script/helpers/strings.d.ts +0 -1
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/strings.js +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/script/helpers/toResolvedArtifactPath.js +2 -3
- package/script/helpers/tracer.d.ts +1 -2
- package/script/helpers/tracer.d.ts.map +1 -1
- package/script/helpers/tracer.js +1 -1
- package/script/mod.d.ts +0 -13
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +15 -28
- package/script/oas/_helpers/parseEnum.d.ts +8 -136
- package/script/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/script/oas/_helpers/parseEnum.js +21 -152
- package/script/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/script/oas/_helpers/parseNullable.js +16 -39
- package/script/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/script/oas/array/Array.d.ts +18 -96
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +38 -102
- package/script/oas/array/array-types.d.ts +6 -174
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +5 -77
- package/script/oas/array/toArray.d.ts +0 -52
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/array/toArray.js +67 -72
- package/script/oas/boolean/Boolean.d.ts +12 -133
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +28 -134
- package/script/oas/boolean/boolean-types.d.ts +14 -1
- package/script/oas/boolean/boolean-types.d.ts.map +1 -1
- package/script/oas/boolean/boolean-types.js +4 -1
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +75 -19
- package/script/oas/components/Components.d.ts +0 -2
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +0 -2
- package/script/oas/components/toComponentsV3.d.ts.map +1 -1
- package/script/oas/components/toComponentsV3.js +7 -9
- package/script/oas/discriminator/Discriminator.d.ts +0 -1
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/script/oas/discriminator/Discriminator.js +0 -1
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/script/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/script/oas/document/Document.d.ts +5 -1
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/document/Document.js +7 -1
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/script/oas/document/toDocumentFieldsV3.js +11 -8
- package/script/oas/example/Example.d.ts +10 -85
- package/script/oas/example/Example.d.ts.map +1 -1
- package/script/oas/example/Example.js +36 -105
- package/script/oas/example/toExamplesV3.d.ts +1 -1
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +13 -8
- package/script/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/script/oas/externalDocs/ExternalDocs.js +22 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/script/oas/{requestBody/requestBody-types.js → externalDocs/externalDocsTypes.js} +3 -6
- package/script/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/script/oas/{response/response-types.js → externalDocs/toExternalDocs.js} +16 -11
- package/script/oas/header/Header.d.ts +6 -6
- package/script/oas/header/Header.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.js +9 -5
- package/script/oas/info/Info.d.ts +0 -1
- package/script/oas/info/Info.d.ts.map +1 -1
- package/script/oas/info/Info.js +0 -1
- package/script/oas/integer/Integer.d.ts +18 -81
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +33 -82
- package/script/oas/integer/integer-types.d.ts +21 -1
- package/script/oas/integer/integer-types.d.ts.map +1 -1
- package/script/oas/integer/integer-types.js +8 -2
- package/script/oas/integer/toInteger.d.ts.map +1 -1
- package/script/oas/integer/toInteger.js +65 -18
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/script/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/script/oas/number/Number.d.ts +18 -164
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +33 -165
- package/script/oas/number/number-types.d.ts +22 -2
- package/script/oas/number/number-types.d.ts.map +1 -1
- package/script/oas/number/number-types.js +4 -1
- package/script/oas/number/toNumber.d.ts +0 -62
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +66 -81
- package/script/oas/object/Object.d.ts +0 -1
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +0 -1
- package/script/oas/object/toObject.d.ts.map +1 -1
- package/script/oas/object/toObject.js +38 -46
- package/script/oas/operation/Operation.d.ts +9 -108
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +16 -108
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/script/oas/operation/toOperationsV3.js +12 -7
- package/script/oas/parameter/Parameter.d.ts +12 -13
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +0 -3
- package/script/oas/parameter/parameter-types.d.ts +0 -20
- package/script/oas/parameter/parameter-types.d.ts.map +1 -1
- package/script/oas/parameter/parameter-types.js +1 -21
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.js +14 -11
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/script/oas/pathItem/toPathItemV3.js +2 -1
- package/script/oas/ref/Ref.d.ts +0 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +0 -1
- package/script/oas/ref/toRefV31.d.ts.map +1 -1
- package/script/oas/ref/toRefV31.js +4 -1
- package/script/oas/requestBody/RequestBody.d.ts +0 -1
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/script/oas/requestBody/RequestBody.js +0 -1
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/script/oas/response/Response.d.ts +0 -1
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +0 -1
- package/script/oas/response/toResponseV3.d.ts.map +1 -1
- package/script/oas/response/toResponseV3.js +9 -8
- package/script/oas/schema/Schema.d.ts +0 -1
- package/script/oas/schema/Schema.d.ts.map +1 -1
- package/script/oas/schema/Schema.js +0 -1
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/script/oas/schema/toSchemasV3.js +10 -16
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/script/oas/server/Server.d.ts +0 -1
- package/script/oas/server/Server.d.ts.map +1 -1
- package/script/oas/server/Server.js +0 -1
- package/script/oas/server/toServerV3.d.ts.map +1 -1
- package/script/oas/server/toServerV3.js +2 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/script/oas/string/String.d.ts +16 -88
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +33 -91
- package/script/oas/string/string-types.d.ts +23 -80
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/string-types.js +6 -2
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/string/toString.js +68 -18
- package/script/oas/tag/Tag.d.ts +0 -1
- package/script/oas/tag/Tag.d.ts.map +1 -1
- package/script/oas/tag/Tag.js +0 -1
- package/script/oas/union/toUnion.d.ts.map +1 -1
- package/script/oas/union/toUnion.js +6 -2
- package/script/oas/unknown/Unknown.d.ts +3 -1
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +8 -1
- package/script/oas/unknown/toUnknown.js +1 -1
- package/script/oas/void/Void.d.ts +0 -1
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +0 -1
- package/script/types/Brand.d.ts +0 -1
- package/script/types/Brand.d.ts.map +1 -1
- package/script/types/Brand.js +0 -10
- package/script/types/CustomValue.d.ts +0 -1
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +0 -1
- package/script/types/DenoJson.d.ts +0 -1
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +0 -1
- package/script/types/EnrichmentRequest.d.ts +0 -1
- package/script/types/EnrichmentRequest.d.ts.map +1 -1
- package/script/types/EnrichmentRequest.js +1 -2
- package/script/types/Enrichments.d.ts +0 -1
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +35 -36
- package/script/types/GeneratorKeys.d.ts +0 -1
- package/script/types/GeneratorKeys.d.ts.map +1 -1
- package/script/types/GeneratorKeys.js +2 -3
- package/script/types/Manifest.d.ts +0 -1
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +35 -36
- package/script/types/Method.d.ts +0 -165
- package/script/types/Method.d.ts.map +1 -1
- package/script/types/Method.js +1 -141
- package/script/types/ModuleExport.d.ts +0 -1
- package/script/types/ModuleExport.d.ts.map +1 -1
- package/script/types/ModuleExport.js +0 -1
- package/script/types/PrettierConfig.d.ts +0 -1
- package/script/types/PrettierConfig.d.ts.map +1 -1
- package/script/types/PrettierConfig.js +35 -36
- package/script/types/Preview.d.ts +0 -1
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +35 -36
- package/script/types/RefName.d.ts +0 -1
- package/script/types/RefName.d.ts.map +1 -1
- package/script/types/RefName.js +1 -2
- package/script/types/Results.d.ts +0 -1
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Results.js +35 -36
- package/script/types/Settings.d.ts +0 -1
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +35 -36
- package/script/types/TypeSystem.d.ts +0 -1
- package/script/types/TypeSystem.d.ts.map +1 -1
- package/script/types/TypeSystem.js +0 -1
- package/esm/_dnt.polyfills.d.ts +0 -12
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -15
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -48
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1427
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -117
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -103
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -96
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -159
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -22
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -29
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -19
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -30
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -9
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -81
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -20
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -6
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -13
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -93
- package/esm/oas/_helpers/parseDefault.d.ts +0 -164
- package/esm/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/esm/oas/_helpers/parseDefault.js +0 -144
- package/esm/oas/_helpers/parseExample.d.ts +0 -123
- package/esm/oas/_helpers/parseExample.d.ts.map +0 -1
- package/esm/oas/_helpers/parseExample.js +0 -103
- package/esm/oas/_helpers/parseFormat.d.ts +0 -169
- package/esm/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/esm/oas/_helpers/parseFormat.js +0 -154
- package/esm/oas/components/components-types.d.ts +0 -19
- package/esm/oas/components/components-types.d.ts.map +0 -1
- package/esm/oas/components/components-types.js +0 -21
- package/esm/oas/document/document-types.d.ts +0 -16
- package/esm/oas/document/document-types.d.ts.map +0 -1
- package/esm/oas/document/document-types.js +0 -18
- package/esm/oas/header/header-types.d.ts +0 -50
- package/esm/oas/header/header-types.d.ts.map +0 -1
- package/esm/oas/header/header-types.js +0 -30
- package/esm/oas/mediaType/mediaType-types.d.ts +0 -29
- package/esm/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/esm/oas/mediaType/mediaType-types.js +0 -18
- package/esm/oas/object/object-types.d.ts +0 -19
- package/esm/oas/object/object-types.d.ts.map +0 -1
- package/esm/oas/object/object-types.js +0 -23
- package/esm/oas/operation/operation-types.d.ts +0 -273
- package/esm/oas/operation/operation-types.d.ts.map +0 -1
- package/esm/oas/operation/operation-types.js +0 -133
- package/esm/oas/pathItem/pathItem-types.d.ts +0 -12
- package/esm/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/esm/oas/pathItem/pathItem-types.js +0 -12
- package/esm/oas/requestBody/requestBody-types.d.ts +0 -10
- package/esm/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/esm/oas/requestBody/requestBody-types.js +0 -9
- package/esm/oas/response/response-types.d.ts +0 -12
- package/esm/oas/response/response-types.d.ts.map +0 -1
- package/esm/oas/response/response-types.js +0 -11
- package/esm/oas/schema/schema-types.d.ts +0 -12
- package/esm/oas/schema/schema-types.d.ts.map +0 -1
- package/esm/oas/schema/schema-types.js +0 -19
- package/esm/oas/union/union-types.d.ts +0 -34
- package/esm/oas/union/union-types.d.ts.map +0 -1
- package/esm/oas/union/union-types.js +0 -19
- package/esm/run/toV3JsonDocument.d.ts +0 -151
- package/esm/run/toV3JsonDocument.d.ts.map +0 -1
- package/esm/run/toV3JsonDocument.js +0 -172
- package/script/_dnt.polyfills.d.ts +0 -12
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -16
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -55
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1431
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -121
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -106
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -35
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -99
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -162
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -25
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -22
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -12
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -84
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -23
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -7
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -18
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -97
- package/script/oas/_helpers/parseDefault.d.ts +0 -164
- package/script/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/script/oas/_helpers/parseDefault.js +0 -181
- package/script/oas/_helpers/parseExample.d.ts +0 -123
- package/script/oas/_helpers/parseExample.d.ts.map +0 -1
- package/script/oas/_helpers/parseExample.js +0 -140
- package/script/oas/_helpers/parseFormat.d.ts +0 -169
- package/script/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/script/oas/_helpers/parseFormat.js +0 -191
- package/script/oas/components/components-types.d.ts +0 -19
- package/script/oas/components/components-types.d.ts.map +0 -1
- package/script/oas/components/components-types.js +0 -57
- package/script/oas/document/document-types.d.ts +0 -16
- package/script/oas/document/document-types.d.ts.map +0 -1
- package/script/oas/document/document-types.js +0 -54
- package/script/oas/header/header-types.d.ts +0 -50
- package/script/oas/header/header-types.d.ts.map +0 -1
- package/script/oas/header/header-types.js +0 -66
- package/script/oas/mediaType/mediaType-types.d.ts +0 -29
- package/script/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/script/oas/mediaType/mediaType-types.js +0 -54
- package/script/oas/object/object-types.d.ts +0 -19
- package/script/oas/object/object-types.d.ts.map +0 -1
- package/script/oas/object/object-types.js +0 -59
- package/script/oas/operation/operation-types.d.ts +0 -273
- package/script/oas/operation/operation-types.d.ts.map +0 -1
- package/script/oas/operation/operation-types.js +0 -169
- package/script/oas/pathItem/pathItem-types.d.ts +0 -12
- package/script/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/script/oas/pathItem/pathItem-types.js +0 -48
- package/script/oas/requestBody/requestBody-types.d.ts +0 -10
- package/script/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/script/oas/response/response-types.d.ts +0 -12
- package/script/oas/response/response-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.d.ts +0 -12
- package/script/oas/schema/schema-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.js +0 -55
- package/script/oas/union/union-types.d.ts +0 -34
- package/script/oas/union/union-types.d.ts.map +0 -1
- package/script/oas/union/union-types.js +0 -55
- package/script/run/toV3JsonDocument.d.ts +0 -151
- package/script/run/toV3JsonDocument.d.ts.map +0 -1
- package/script/run/toV3JsonDocument.js +0 -180
|
@@ -10,7 +10,6 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _RenderContext_prettierConfig, _RenderContext_stackTrail;
|
|
13
|
-
import * as Sentry from '@sentry/node';
|
|
14
13
|
import invariant from 'tiny-invariant';
|
|
15
14
|
import { normalize } from '../deps/jsr.io/@std/path/1.1.2/normalize.js';
|
|
16
15
|
import { toResolvedArtifactPath } from '../helpers/toResolvedArtifactPath.js';
|
|
@@ -33,7 +32,6 @@ import { File } from '../dsl/File.js';
|
|
|
33
32
|
* - **Path Resolution**: Intelligent path resolution with base path support
|
|
34
33
|
* - **Content Collation**: Combines all generated content into organized file structures
|
|
35
34
|
* - **Metadata Generation**: Tracks file statistics (lines, characters) and relationships
|
|
36
|
-
* - **Error Tracking**: Comprehensive error handling with Sentry integration
|
|
37
35
|
* - **Performance Monitoring**: Built-in tracing and performance measurement
|
|
38
36
|
*
|
|
39
37
|
* @example Basic rendering usage
|
|
@@ -190,7 +188,6 @@ import { File } from '../dsl/File.js';
|
|
|
190
188
|
*
|
|
191
189
|
* } catch (error) {
|
|
192
190
|
* console.error('Render operation failed:', error);
|
|
193
|
-
* // Sentry automatically captures the error
|
|
194
191
|
* }
|
|
195
192
|
* ```
|
|
196
193
|
*/
|
|
@@ -267,9 +264,6 @@ export class RenderContext {
|
|
|
267
264
|
* formatting (if configured), resolves paths, and produces the final
|
|
268
265
|
* artifacts ready for writing to the filesystem.
|
|
269
266
|
*
|
|
270
|
-
* The method is wrapped in Sentry tracing spans for performance monitoring
|
|
271
|
-
* and includes both collation and artifact preparation phases.
|
|
272
|
-
*
|
|
273
267
|
* @returns Promise resolving to render result containing artifacts, file metadata, previews, and mappings
|
|
274
268
|
*
|
|
275
269
|
* @example
|
|
@@ -294,18 +288,14 @@ export class RenderContext {
|
|
|
294
288
|
* ```
|
|
295
289
|
*/
|
|
296
290
|
render() {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
mappings: this.mappings
|
|
306
|
-
};
|
|
307
|
-
return rendered;
|
|
308
|
-
});
|
|
291
|
+
const result = this.collate();
|
|
292
|
+
const rendered = {
|
|
293
|
+
artifacts: result.artifacts,
|
|
294
|
+
files: result.files,
|
|
295
|
+
previews: this.previews,
|
|
296
|
+
mappings: this.mappings
|
|
297
|
+
};
|
|
298
|
+
return rendered;
|
|
309
299
|
}
|
|
310
300
|
/**
|
|
311
301
|
* Collates all files in the context into a unified render result.
|
|
@@ -389,7 +379,7 @@ export class RenderContext {
|
|
|
389
379
|
* ```
|
|
390
380
|
*/
|
|
391
381
|
trace(token, fn) {
|
|
392
|
-
return tracer(__classPrivateFieldGet(this, _RenderContext_stackTrail, "f"), token, fn
|
|
382
|
+
return tracer(__classPrivateFieldGet(this, _RenderContext_stackTrail, "f"), token, fn);
|
|
393
383
|
}
|
|
394
384
|
/**
|
|
395
385
|
* Retrieves a file from the context by its normalized path.
|
|
@@ -1,90 +1,5 @@
|
|
|
1
|
-
import "../_dnt.polyfills.js";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a stack-based trail for tracking document traversal in OpenAPI processing.
|
|
4
|
-
*
|
|
5
|
-
* The `StackTrail` class maintains a stack of string frames that represent the current
|
|
6
|
-
* path through an OpenAPI document structure. It's used throughout the SKMTC pipeline
|
|
7
|
-
* for tracking context during parsing, generating, and debugging schema processing.
|
|
8
|
-
*
|
|
9
|
-
* This class is essential for error reporting, debugging, and maintaining context
|
|
10
|
-
* when processing nested OpenAPI structures like schemas, operations, and components.
|
|
11
|
-
*
|
|
12
|
-
* ## Key Features
|
|
13
|
-
*
|
|
14
|
-
* - **Path Tracking**: Maintains a trail of traversed document elements
|
|
15
|
-
* - **Context Preservation**: Preserves parsing context for error reporting
|
|
16
|
-
* - **Stack Operations**: Supports push, pop, clone, and manipulation operations
|
|
17
|
-
* - **Reference Resolution**: Can generate OpenAPI reference strings from trails
|
|
18
|
-
* - **Serialization**: Supports string serialization and parsing for persistence
|
|
19
|
-
*
|
|
20
|
-
* @example Basic usage
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import { StackTrail } from '@skmtc/core';
|
|
23
|
-
*
|
|
24
|
-
* // Start with empty trail
|
|
25
|
-
* const trail = new StackTrail();
|
|
26
|
-
*
|
|
27
|
-
* // Build a path through document structure
|
|
28
|
-
* trail.append('components')
|
|
29
|
-
* .append('schemas')
|
|
30
|
-
* .append('User')
|
|
31
|
-
* .append('properties')
|
|
32
|
-
* .append('name');
|
|
33
|
-
*
|
|
34
|
-
* console.log(trail.toString()); // 'components:schemas:User:properties:name'
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @example Schema reference generation
|
|
38
|
-
* ```typescript
|
|
39
|
-
* const schemaTrail = new StackTrail(['components', 'schemas', 'User']);
|
|
40
|
-
* const ref = schemaTrail.toStackRef();
|
|
41
|
-
* console.log(ref); // '#/components/schemas/User'
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @example Error context tracking
|
|
45
|
-
* ```typescript
|
|
46
|
-
* class SchemaProcessor {
|
|
47
|
-
* processSchema(schema: OasSchema, trail: StackTrail) {
|
|
48
|
-
* try {
|
|
49
|
-
* // Process schema logic
|
|
50
|
-
* return this.transformSchema(schema);
|
|
51
|
-
* } catch (error) {
|
|
52
|
-
* throw new Error(`Error at ${trail.toString()}: ${error.message}`);
|
|
53
|
-
* // Error at components:schemas:User:properties:email: Invalid format
|
|
54
|
-
* }
|
|
55
|
-
* }
|
|
56
|
-
* }
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @example Cloning and manipulation
|
|
60
|
-
* ```typescript
|
|
61
|
-
* const baseTrail = new StackTrail(['components', 'schemas']);
|
|
62
|
-
*
|
|
63
|
-
* // Clone for processing different schemas
|
|
64
|
-
* const userTrail = baseTrail.clone().append('User');
|
|
65
|
-
* const productTrail = baseTrail.clone().append('Product');
|
|
66
|
-
*
|
|
67
|
-
* console.log(userTrail.toString()); // 'components:schemas:User'
|
|
68
|
-
* console.log(productTrail.toString()); // 'components:schemas:Product'
|
|
69
|
-
* console.log(baseTrail.toString()); // 'components:schemas' (unchanged)
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
1
|
export declare class StackTrail {
|
|
73
2
|
#private;
|
|
74
|
-
/**
|
|
75
|
-
* Creates a new StackTrail instance.
|
|
76
|
-
*
|
|
77
|
-
* @param stack - Initial stack frames (defaults to empty array)
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* // Empty trail
|
|
82
|
-
* const trail1 = new StackTrail();
|
|
83
|
-
*
|
|
84
|
-
* // Pre-populated trail
|
|
85
|
-
* const trail2 = new StackTrail(['components', 'schemas', 'User']);
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
3
|
constructor(stack?: string[]);
|
|
89
4
|
/**
|
|
90
5
|
* Creates a shallow copy of the stack trail.
|
|
@@ -102,41 +17,6 @@ export declare class StackTrail {
|
|
|
102
17
|
* ```
|
|
103
18
|
*/
|
|
104
19
|
clone(): StackTrail;
|
|
105
|
-
/**
|
|
106
|
-
* Creates a new trail from a slice of the current trail.
|
|
107
|
-
*
|
|
108
|
-
* @param start - Starting index (inclusive)
|
|
109
|
-
* @param end - Ending index (exclusive, optional)
|
|
110
|
-
* @returns A new StackTrail with sliced frames
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```typescript
|
|
114
|
-
* const trail = new StackTrail(['a', 'b', 'c', 'd', 'e']);
|
|
115
|
-
*
|
|
116
|
-
* const slice1 = trail.slice(1, 3);
|
|
117
|
-
* console.log(slice1.toString()); // 'b:c'
|
|
118
|
-
*
|
|
119
|
-
* const slice2 = trail.slice(2);
|
|
120
|
-
* console.log(slice2.toString()); // 'c:d:e'
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
slice(start: number, end?: number): StackTrail;
|
|
124
|
-
/**
|
|
125
|
-
* Checks if all specified frames exist in the trail.
|
|
126
|
-
*
|
|
127
|
-
* @param frames - Array of frames to check for
|
|
128
|
-
* @returns True if all frames are present in the trail
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* ```typescript
|
|
132
|
-
* const trail = new StackTrail(['components', 'schemas', 'User', 'properties']);
|
|
133
|
-
*
|
|
134
|
-
* console.log(trail.includes(['schemas', 'User'])); // true
|
|
135
|
-
* console.log(trail.includes(['schemas', 'Product'])); // false
|
|
136
|
-
* console.log(trail.includes(['components'])); // true
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
includes(frames: string[]): boolean;
|
|
140
20
|
/**
|
|
141
21
|
* Gets a copy of the current stack frames.
|
|
142
22
|
*
|
|
@@ -173,23 +53,6 @@ export declare class StackTrail {
|
|
|
173
53
|
* ```
|
|
174
54
|
*/
|
|
175
55
|
append(frame: string | string[]): StackTrail;
|
|
176
|
-
/**
|
|
177
|
-
* Gets the parent name of a property frame.
|
|
178
|
-
*
|
|
179
|
-
* This method is specifically designed to find parent object names
|
|
180
|
-
* for property trails in schema processing.
|
|
181
|
-
*
|
|
182
|
-
* @param frame - The frame name to find the parent of
|
|
183
|
-
* @returns Parent name if found, undefined otherwise
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```typescript
|
|
187
|
-
* const trail = new StackTrail(['components', 'schemas', 'User', 'properties', 'email']);
|
|
188
|
-
* const parent = trail.getParentOf('email');
|
|
189
|
-
* console.log(parent); // 'User'
|
|
190
|
-
* ```
|
|
191
|
-
*/
|
|
192
|
-
getParentOf(frame: string): string | undefined;
|
|
193
56
|
/**
|
|
194
57
|
* Converts the trail to an OpenAPI reference string if applicable.
|
|
195
58
|
*
|
|
@@ -237,41 +100,6 @@ export declare class StackTrail {
|
|
|
237
100
|
* ```
|
|
238
101
|
*/
|
|
239
102
|
remove(frame: string | string[]): StackTrail;
|
|
240
|
-
/**
|
|
241
|
-
* Joins multiple stacks or strings into a single colon-separated string.
|
|
242
|
-
*
|
|
243
|
-
* @param stacks - Array of StackTrail instances or strings to join
|
|
244
|
-
* @returns Joined string with colon separators
|
|
245
|
-
*
|
|
246
|
-
* @example
|
|
247
|
-
* ```typescript
|
|
248
|
-
* const trail1 = new StackTrail(['components', 'schemas']);
|
|
249
|
-
* const trail2 = new StackTrail(['User', 'properties']);
|
|
250
|
-
*
|
|
251
|
-
* const joined = StackTrail.join(trail1, 'separator', trail2);
|
|
252
|
-
* console.log(joined); // 'components:schemas:separator:User:properties'
|
|
253
|
-
* ```
|
|
254
|
-
*/
|
|
255
|
-
static join(...stacks: (StackTrail | string)[]): string;
|
|
256
|
-
/**
|
|
257
|
-
* Parses a colon-separated string into a StackTrail instance.
|
|
258
|
-
*
|
|
259
|
-
* @param value - Colon-separated string to parse
|
|
260
|
-
* @returns New StackTrail instance
|
|
261
|
-
*
|
|
262
|
-
* @throws {Error} When the string contains empty tokens
|
|
263
|
-
*
|
|
264
|
-
* @example
|
|
265
|
-
* ```typescript
|
|
266
|
-
* const trail = StackTrail.parse('components:schemas:User:properties:name');
|
|
267
|
-
* console.log(trail.stackTrail); // ['components', 'schemas', 'User', 'properties', 'name']
|
|
268
|
-
*
|
|
269
|
-
* // Handles escaped colons
|
|
270
|
-
* const escapedTrail = StackTrail.parse('components:schemas:User%3AType');
|
|
271
|
-
* console.log(escapedTrail.stackTrail); // ['components', 'schemas', 'User:Type']
|
|
272
|
-
* ```
|
|
273
|
-
*/
|
|
274
|
-
static parse(value: string): StackTrail;
|
|
275
103
|
/**
|
|
276
104
|
* Converts the trail to JSON representation.
|
|
277
105
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackTrail.d.ts","sourceRoot":"","sources":["../../src/context/StackTrail.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StackTrail.d.ts","sourceRoot":"","sources":["../../src/context/StackTrail.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;;gBAIT,KAAK,GAAE,MAAM,EAAO;IAIhC;;;;;;;;;;;;;;OAcG;IACH,KAAK,IAAI,UAAU;IAInB;;;;;;;;;;;OAWG;IACH,IAAI,UAAU,IAAI,MAAM,EAAE,CAEzB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAgB5C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,UAAU,IAAI,MAAM,GAAG,SAAS;IAkBhC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU;IAoB5C;;;;;;;;;;;;;;OAcG;IACH,MAAM,IAAI,MAAM;IAIhB;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,IAAI,MAAM;CAOnB"}
|
|
@@ -10,93 +10,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _StackTrail_stack;
|
|
13
|
-
import "../_dnt.polyfills.js";
|
|
14
13
|
import { componentsKeys } from '../oas/components/Components.js';
|
|
15
|
-
/**
|
|
16
|
-
* Represents a stack-based trail for tracking document traversal in OpenAPI processing.
|
|
17
|
-
*
|
|
18
|
-
* The `StackTrail` class maintains a stack of string frames that represent the current
|
|
19
|
-
* path through an OpenAPI document structure. It's used throughout the SKMTC pipeline
|
|
20
|
-
* for tracking context during parsing, generating, and debugging schema processing.
|
|
21
|
-
*
|
|
22
|
-
* This class is essential for error reporting, debugging, and maintaining context
|
|
23
|
-
* when processing nested OpenAPI structures like schemas, operations, and components.
|
|
24
|
-
*
|
|
25
|
-
* ## Key Features
|
|
26
|
-
*
|
|
27
|
-
* - **Path Tracking**: Maintains a trail of traversed document elements
|
|
28
|
-
* - **Context Preservation**: Preserves parsing context for error reporting
|
|
29
|
-
* - **Stack Operations**: Supports push, pop, clone, and manipulation operations
|
|
30
|
-
* - **Reference Resolution**: Can generate OpenAPI reference strings from trails
|
|
31
|
-
* - **Serialization**: Supports string serialization and parsing for persistence
|
|
32
|
-
*
|
|
33
|
-
* @example Basic usage
|
|
34
|
-
* ```typescript
|
|
35
|
-
* import { StackTrail } from '@skmtc/core';
|
|
36
|
-
*
|
|
37
|
-
* // Start with empty trail
|
|
38
|
-
* const trail = new StackTrail();
|
|
39
|
-
*
|
|
40
|
-
* // Build a path through document structure
|
|
41
|
-
* trail.append('components')
|
|
42
|
-
* .append('schemas')
|
|
43
|
-
* .append('User')
|
|
44
|
-
* .append('properties')
|
|
45
|
-
* .append('name');
|
|
46
|
-
*
|
|
47
|
-
* console.log(trail.toString()); // 'components:schemas:User:properties:name'
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @example Schema reference generation
|
|
51
|
-
* ```typescript
|
|
52
|
-
* const schemaTrail = new StackTrail(['components', 'schemas', 'User']);
|
|
53
|
-
* const ref = schemaTrail.toStackRef();
|
|
54
|
-
* console.log(ref); // '#/components/schemas/User'
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* @example Error context tracking
|
|
58
|
-
* ```typescript
|
|
59
|
-
* class SchemaProcessor {
|
|
60
|
-
* processSchema(schema: OasSchema, trail: StackTrail) {
|
|
61
|
-
* try {
|
|
62
|
-
* // Process schema logic
|
|
63
|
-
* return this.transformSchema(schema);
|
|
64
|
-
* } catch (error) {
|
|
65
|
-
* throw new Error(`Error at ${trail.toString()}: ${error.message}`);
|
|
66
|
-
* // Error at components:schemas:User:properties:email: Invalid format
|
|
67
|
-
* }
|
|
68
|
-
* }
|
|
69
|
-
* }
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* @example Cloning and manipulation
|
|
73
|
-
* ```typescript
|
|
74
|
-
* const baseTrail = new StackTrail(['components', 'schemas']);
|
|
75
|
-
*
|
|
76
|
-
* // Clone for processing different schemas
|
|
77
|
-
* const userTrail = baseTrail.clone().append('User');
|
|
78
|
-
* const productTrail = baseTrail.clone().append('Product');
|
|
79
|
-
*
|
|
80
|
-
* console.log(userTrail.toString()); // 'components:schemas:User'
|
|
81
|
-
* console.log(productTrail.toString()); // 'components:schemas:Product'
|
|
82
|
-
* console.log(baseTrail.toString()); // 'components:schemas' (unchanged)
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
14
|
export class StackTrail {
|
|
86
|
-
/**
|
|
87
|
-
* Creates a new StackTrail instance.
|
|
88
|
-
*
|
|
89
|
-
* @param stack - Initial stack frames (defaults to empty array)
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```typescript
|
|
93
|
-
* // Empty trail
|
|
94
|
-
* const trail1 = new StackTrail();
|
|
95
|
-
*
|
|
96
|
-
* // Pre-populated trail
|
|
97
|
-
* const trail2 = new StackTrail(['components', 'schemas', 'User']);
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
15
|
constructor(stack = []) {
|
|
101
16
|
/** Internal stack of traversal frames */
|
|
102
17
|
_StackTrail_stack.set(this, void 0);
|
|
@@ -120,45 +35,6 @@ export class StackTrail {
|
|
|
120
35
|
clone() {
|
|
121
36
|
return new StackTrail([...__classPrivateFieldGet(this, _StackTrail_stack, "f")]);
|
|
122
37
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Creates a new trail from a slice of the current trail.
|
|
125
|
-
*
|
|
126
|
-
* @param start - Starting index (inclusive)
|
|
127
|
-
* @param end - Ending index (exclusive, optional)
|
|
128
|
-
* @returns A new StackTrail with sliced frames
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* ```typescript
|
|
132
|
-
* const trail = new StackTrail(['a', 'b', 'c', 'd', 'e']);
|
|
133
|
-
*
|
|
134
|
-
* const slice1 = trail.slice(1, 3);
|
|
135
|
-
* console.log(slice1.toString()); // 'b:c'
|
|
136
|
-
*
|
|
137
|
-
* const slice2 = trail.slice(2);
|
|
138
|
-
* console.log(slice2.toString()); // 'c:d:e'
|
|
139
|
-
* ```
|
|
140
|
-
*/
|
|
141
|
-
slice(start, end) {
|
|
142
|
-
return new StackTrail(__classPrivateFieldGet(this, _StackTrail_stack, "f").slice(start, end));
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Checks if all specified frames exist in the trail.
|
|
146
|
-
*
|
|
147
|
-
* @param frames - Array of frames to check for
|
|
148
|
-
* @returns True if all frames are present in the trail
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* ```typescript
|
|
152
|
-
* const trail = new StackTrail(['components', 'schemas', 'User', 'properties']);
|
|
153
|
-
*
|
|
154
|
-
* console.log(trail.includes(['schemas', 'User'])); // true
|
|
155
|
-
* console.log(trail.includes(['schemas', 'Product'])); // false
|
|
156
|
-
* console.log(trail.includes(['components'])); // true
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
includes(frames) {
|
|
160
|
-
return frames.every(frame => __classPrivateFieldGet(this, _StackTrail_stack, "f").includes(frame));
|
|
161
|
-
}
|
|
162
38
|
/**
|
|
163
39
|
* Gets a copy of the current stack frames.
|
|
164
40
|
*
|
|
@@ -207,30 +83,6 @@ export class StackTrail {
|
|
|
207
83
|
}
|
|
208
84
|
throw new Error(`Unexpected stack frame: ${frame}`);
|
|
209
85
|
}
|
|
210
|
-
/**
|
|
211
|
-
* Gets the parent name of a property frame.
|
|
212
|
-
*
|
|
213
|
-
* This method is specifically designed to find parent object names
|
|
214
|
-
* for property trails in schema processing.
|
|
215
|
-
*
|
|
216
|
-
* @param frame - The frame name to find the parent of
|
|
217
|
-
* @returns Parent name if found, undefined otherwise
|
|
218
|
-
*
|
|
219
|
-
* @example
|
|
220
|
-
* ```typescript
|
|
221
|
-
* const trail = new StackTrail(['components', 'schemas', 'User', 'properties', 'email']);
|
|
222
|
-
* const parent = trail.getParentOf('email');
|
|
223
|
-
* console.log(parent); // 'User'
|
|
224
|
-
* ```
|
|
225
|
-
*/
|
|
226
|
-
getParentOf(frame) {
|
|
227
|
-
const lastItemIndex = this.stackTrail.length - 1;
|
|
228
|
-
if (this.stackTrail?.[lastItemIndex] === frame &&
|
|
229
|
-
this.stackTrail?.[lastItemIndex - 1] === 'properties') {
|
|
230
|
-
const parentName = this.stackTrail?.[lastItemIndex - 2];
|
|
231
|
-
return typeof parentName === 'string' ? parentName : undefined;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
86
|
/**
|
|
235
87
|
* Converts the trail to an OpenAPI reference string if applicable.
|
|
236
88
|
*
|
|
@@ -291,11 +143,10 @@ export class StackTrail {
|
|
|
291
143
|
*/
|
|
292
144
|
remove(frame) {
|
|
293
145
|
if (typeof frame === 'string') {
|
|
294
|
-
const lastItem = __classPrivateFieldGet(this, _StackTrail_stack, "f")
|
|
146
|
+
const lastItem = __classPrivateFieldGet(this, _StackTrail_stack, "f").pop();
|
|
295
147
|
if (lastItem !== frame) {
|
|
296
148
|
throw new Error(`Expected to remove frame '${frame}' but found '${lastItem}'`);
|
|
297
149
|
}
|
|
298
|
-
__classPrivateFieldGet(this, _StackTrail_stack, "f").pop();
|
|
299
150
|
return this;
|
|
300
151
|
}
|
|
301
152
|
if (Array.isArray(frame)) {
|
|
@@ -304,51 +155,6 @@ export class StackTrail {
|
|
|
304
155
|
}
|
|
305
156
|
throw new Error(`Unexpected stack frame: ${frame}`);
|
|
306
157
|
}
|
|
307
|
-
/**
|
|
308
|
-
* Joins multiple stacks or strings into a single colon-separated string.
|
|
309
|
-
*
|
|
310
|
-
* @param stacks - Array of StackTrail instances or strings to join
|
|
311
|
-
* @returns Joined string with colon separators
|
|
312
|
-
*
|
|
313
|
-
* @example
|
|
314
|
-
* ```typescript
|
|
315
|
-
* const trail1 = new StackTrail(['components', 'schemas']);
|
|
316
|
-
* const trail2 = new StackTrail(['User', 'properties']);
|
|
317
|
-
*
|
|
318
|
-
* const joined = StackTrail.join(trail1, 'separator', trail2);
|
|
319
|
-
* console.log(joined); // 'components:schemas:separator:User:properties'
|
|
320
|
-
* ```
|
|
321
|
-
*/
|
|
322
|
-
static join(...stacks) {
|
|
323
|
-
return stacks.map(stack => stack.toString()).join(':');
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Parses a colon-separated string into a StackTrail instance.
|
|
327
|
-
*
|
|
328
|
-
* @param value - Colon-separated string to parse
|
|
329
|
-
* @returns New StackTrail instance
|
|
330
|
-
*
|
|
331
|
-
* @throws {Error} When the string contains empty tokens
|
|
332
|
-
*
|
|
333
|
-
* @example
|
|
334
|
-
* ```typescript
|
|
335
|
-
* const trail = StackTrail.parse('components:schemas:User:properties:name');
|
|
336
|
-
* console.log(trail.stackTrail); // ['components', 'schemas', 'User', 'properties', 'name']
|
|
337
|
-
*
|
|
338
|
-
* // Handles escaped colons
|
|
339
|
-
* const escapedTrail = StackTrail.parse('components:schemas:User%3AType');
|
|
340
|
-
* console.log(escapedTrail.stackTrail); // ['components', 'schemas', 'User:Type']
|
|
341
|
-
* ```
|
|
342
|
-
*/
|
|
343
|
-
static parse(value) {
|
|
344
|
-
const stack = value.split(':').map(item => {
|
|
345
|
-
if (!item) {
|
|
346
|
-
throw new Error(`Empty stack trail token in: ${value}`);
|
|
347
|
-
}
|
|
348
|
-
return item.replaceAll('%3A', ':');
|
|
349
|
-
});
|
|
350
|
-
return new StackTrail(stack);
|
|
351
|
-
}
|
|
352
158
|
/**
|
|
353
159
|
* Converts the trail to JSON representation.
|
|
354
160
|
*
|
package/esm/dsl/Stringable.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stringable.d.ts","sourceRoot":"","sources":["../../src/dsl/Stringable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,
|
|
1
|
+
{"version":3,"file":"Stringable.d.ts","sourceRoot":"","sources":["../../src/dsl/Stringable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,MAAM,CAAA;CACvB,CAAA"}
|
package/esm/dsl/Stringable.js
CHANGED
|
@@ -1,76 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Represents any object that can be converted to a string representation.
|
|
3
|
-
*
|
|
4
|
-
* The `Stringable` interface is a fundamental type used throughout the SKMTC DSL
|
|
5
|
-
* system to ensure that objects can be converted to strings for code generation.
|
|
6
|
-
* This interface matches JavaScript's built-in `toString()` contract and is used
|
|
7
|
-
* extensively by the {@link List} class and other string-building utilities.
|
|
8
|
-
*
|
|
9
|
-
* ## Usage in SKMTC
|
|
10
|
-
*
|
|
11
|
-
* This type is used as a constraint in generic classes and functions that need
|
|
12
|
-
* to output string representations. It allows for type-safe string building
|
|
13
|
-
* while accommodating both primitive types and custom objects.
|
|
14
|
-
*
|
|
15
|
-
* @example Built-in types are stringable
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import type { Stringable } from '@skmtc/core';
|
|
18
|
-
*
|
|
19
|
-
* // All these types implement Stringable
|
|
20
|
-
* const str: Stringable = 'hello'; // string
|
|
21
|
-
* const num: Stringable = 42; // number
|
|
22
|
-
* const bool: Stringable = true; // boolean
|
|
23
|
-
* const obj: Stringable = { toString: () => 'custom' }; // custom object
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @example Custom classes implementing Stringable
|
|
27
|
-
* ```typescript
|
|
28
|
-
* class CodeBlock implements Stringable {
|
|
29
|
-
* constructor(private code: string) {}
|
|
30
|
-
*
|
|
31
|
-
* toString(): string {
|
|
32
|
-
* return `{\n ${this.code}\n}`;
|
|
33
|
-
* }
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* const block = new CodeBlock('console.log("hello");');
|
|
37
|
-
* console.log(block.toString());
|
|
38
|
-
* // {
|
|
39
|
-
* // console.log("hello");
|
|
40
|
-
* // }
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @example Using with List class
|
|
44
|
-
* ```typescript
|
|
45
|
-
* import { List } from '@skmtc/core';
|
|
46
|
-
*
|
|
47
|
-
* // List accepts any Stringable items
|
|
48
|
-
* const stringables: Stringable[] = [
|
|
49
|
-
* 'string literal',
|
|
50
|
-
* 42,
|
|
51
|
-
* true,
|
|
52
|
-
* { toString: () => 'custom object' },
|
|
53
|
-
* new CodeBlock('return value;')
|
|
54
|
-
* ];
|
|
55
|
-
*
|
|
56
|
-
* const list = new List(stringables);
|
|
57
|
-
* console.log(list.toString());
|
|
58
|
-
* // string literal, 42, true, custom object, {
|
|
59
|
-
* // return value;
|
|
60
|
-
* // }
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @example Type constraints in generics
|
|
64
|
-
* ```typescript
|
|
65
|
-
* function joinWithCommas<T extends Stringable>(items: T[]): string {
|
|
66
|
-
* return items.map(item => item.toString()).join(', ');
|
|
67
|
-
* }
|
|
68
|
-
*
|
|
69
|
-
* const result = joinWithCommas([1, 2, 3]); // "1, 2, 3"
|
|
70
|
-
* const identifiers = joinWithCommas([
|
|
71
|
-
* Identifier.createVariable('user'),
|
|
72
|
-
* Identifier.createType('User')
|
|
73
|
-
* ]); // "user, User"
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
import "../_dnt.polyfills.js";
|
|
1
|
+
export {};
|
|
@@ -3,7 +3,6 @@ import type { RefName } from '../../types/RefName.js';
|
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
4
|
import type { Identifier } from '../Identifier.js';
|
|
5
5
|
import * as v from 'valibot';
|
|
6
|
-
import type { ModelInsertable } from './types.js';
|
|
7
6
|
/**
|
|
8
7
|
* Arguments for creating a model insertable instance.
|
|
9
8
|
*
|
|
@@ -90,8 +89,8 @@ export declare const toModelBase: <EnrichmentType = undefined>(config: BaseModel
|
|
|
90
89
|
settings: ContentSettings<EnrichmentType>;
|
|
91
90
|
refName: RefName;
|
|
92
91
|
generatorKey: import("../../mod.js").GeneratorKey;
|
|
93
|
-
insertModel<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: ModelInsertable<V, EnrichmentType_1>, refName: RefName, options?: Pick<import("../../mod.js").InsertModelOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
|
|
94
|
-
insertNormalizedModel<V extends import("../../mod.js").GeneratedValue, Schema extends import("../../mod.js").OasSchema | import("../../mod.js").OasRef<"schema"> | import("../../mod.js").OasVoid, EnrichmentType_2 = undefined>(insertable: ModelInsertable<V, EnrichmentType_2>, { schema, fallbackName }: Omit<import("../../mod.js").InsertNormalisedModelArgs<Schema>, "destinationPath">, options?: Pick<import("../../mod.js").InsertModelOptions<"force">, "noExport">): import("../../mod.js").InsertNormalisedModelReturn<V, Schema>;
|
|
92
|
+
insertModel<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").ModelInsertable<V, EnrichmentType_1>, refName: RefName, options?: Pick<import("../../mod.js").InsertModelOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
|
|
93
|
+
insertNormalizedModel<V extends import("../../mod.js").GeneratedValue, Schema extends import("../../mod.js").OasSchema | import("../../mod.js").OasRef<"schema"> | import("../../mod.js").OasVoid, EnrichmentType_2 = undefined>(insertable: import("./types.js").ModelInsertable<V, EnrichmentType_2>, { schema, fallbackName }: Omit<import("../../mod.js").InsertNormalisedModelArgs<Schema>, "destinationPath">, options?: Pick<import("../../mod.js").InsertModelOptions<"force">, "noExport">): import("../../mod.js").InsertNormalisedModelReturn<V, Schema>;
|
|
95
94
|
register(args: import("../../mod.js").BaseRegisterArgs): void;
|
|
96
95
|
context: GenerateContext;
|
|
97
96
|
skipped: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,2EAA2E;IAC3E,OAAO,EAAE,eAAe,CAAA;IACxB,iEAAiE;IACjE,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,CAAC,cAAc,GAAG,SAAS,IAAI;IACxD,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAA;IACV,4DAA4D;IAC5D,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,UAAU,CAAA;IAC9C,6DAA6D;IAC7D,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;IAC1C,gEAAgE;IAChE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,WAAW,GAAI,cAAc,GAAG,SAAS,EACpD,QAAQ,eAAe,CAAC,cAAc,CAAC;eAiBnB,mBAAmB,CAAC,cAAc,CAAC;;;;;;;;;;;UAbvC,OAAO;4BA1DC,OAAO,KAAK,UAAU;4BAEtB,OAAO,KAAK,MAAM;oBA4DhB,sBAAsB,iBAAiB,KAAG,cAAc;;CAmBnF,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toModelGeneratorKey } from '../../types/GeneratorKeys.js';
|
|
2
2
|
import { ModelBase } from './ModelBase.js';
|
|
3
3
|
import * as v from 'valibot';
|
|
4
|
-
import
|
|
4
|
+
import get from 'lodash-es/get.js';
|
|
5
5
|
/**
|
|
6
6
|
* Creates a base model class constructor for generating type-safe model artifacts.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GenerateContext } from '../../context/GenerateContext.js';
|
|
2
2
|
import type { OasOperation } from '../../oas/operation/Operation.js';
|
|
3
3
|
import type { Identifier } from '../Identifier.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { OperationInsertableArgs } from './types.js';
|
|
5
5
|
import * as v from 'valibot';
|
|
6
6
|
/**
|
|
7
7
|
* Configuration for creating a base operation class.
|
|
@@ -76,7 +76,7 @@ export declare const toOperationBase: <EnrichmentType = undefined>(config: BaseO
|
|
|
76
76
|
settings: import("../ContentSettings.js").ContentSettings<EnrichmentType>;
|
|
77
77
|
operation: OasOperation;
|
|
78
78
|
generatorKey: import("../../mod.js").GeneratorKey;
|
|
79
|
-
insertOperation<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: OperationInsertable<V, EnrichmentType_1>, operation: OasOperation, options?: Pick<import("../../mod.js").InsertOperationOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
|
|
79
|
+
insertOperation<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1 = undefined>(insertable: import("./types.js").OperationInsertable<V, EnrichmentType_1>, operation: OasOperation, options?: Pick<import("../../mod.js").InsertOperationOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
|
|
80
80
|
insertModel<V extends import("../../mod.js").GeneratedValue, EnrichmentType_2 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_2>, refName: import("../../mod.js").RefName, options?: Pick<import("../../mod.js").InsertModelOptions<"force">, "noExport">): import("../Inserted.js").Inserted<V, "force", EnrichmentType_2>;
|
|
81
81
|
insertNormalizedModel<V extends import("../../mod.js").GeneratedValue, Schema extends import("../../mod.js").OasSchema | import("../../mod.js").OasRef<"schema"> | import("../../mod.js").OasVoid, EnrichmentType_3 = undefined>(insertable: import("../model/types.js").ModelInsertable<V, EnrichmentType_3>, { schema, fallbackName }: Omit<import("../../mod.js").InsertNormalisedModelArgs<Schema>, "destinationPath">, options?: Pick<import("../../mod.js").InsertModelOptions<"force">, "noExport">): import("../../mod.js").InsertNormalisedModelReturn<V, Schema>;
|
|
82
82
|
defineAndRegister<V extends import("../../mod.js").GeneratedValue>({ identifier, value, noExport }: Omit<import("../../mod.js").DefineAndRegisterArgs<V>, "destinationPath">): import("../Definition.js").Definition<V>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,uDAAuD;IACvD,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,UAAU,CAAA;IACrD,wDAAwD;IACxD,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,MAAM,CAAA;IACjD,gEAAgE;IAChE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc,GAAG,SAAS,EACxD,QAAQ,mBAAmB,CAAC,cAAc,CAAC;eAoBvB,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;UAhB3C,WAAW;8BA/DD,YAAY,KAAK,UAAU;8BAE3B,YAAY,KAAK,MAAM;oBAkEvB,wBAAwB,iBAAiB,KAAG,cAAc;CAqBrF,CAAA"}
|