@skmtc/core 0.0.300 → 0.0.301
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/context/CoreContext.d.ts +2 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +3 -3
- package/esm/context/GenerateContext.d.ts +2 -2
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +1 -1
- package/esm/context/ParseContext.d.ts +12 -5
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +17 -10
- package/esm/context/StackTrail.d.ts +3 -3
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/StackTrail.js +9 -1
- package/esm/helpers/tracer.d.ts +7 -0
- package/esm/helpers/tracer.d.ts.map +1 -0
- package/esm/helpers/tracer.js +6 -0
- package/esm/oas/array/Array.d.ts +2 -8
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +2 -4
- package/esm/oas/array/toArray.d.ts +3 -5
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/array/toArray.js +5 -7
- package/esm/oas/boolean/Boolean.d.ts +2 -8
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +2 -4
- package/esm/oas/boolean/toBoolean.d.ts +3 -5
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +3 -2
- package/esm/oas/components/Components.d.ts +2 -8
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +2 -4
- package/esm/oas/components/toComponentsV3.d.ts +3 -5
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
- package/esm/oas/components/toComponentsV3.js +10 -22
- package/esm/oas/discriminator/Discriminator.d.ts +2 -8
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +2 -4
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts +3 -5
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/esm/oas/discriminator/toDiscriminatorV3.js +3 -2
- package/esm/oas/document/Document.d.ts +2 -8
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +2 -4
- package/esm/oas/document/toDocumentV3.d.ts +3 -5
- package/esm/oas/document/toDocumentV3.d.ts.map +1 -1
- package/esm/oas/document/toDocumentV3.js +8 -14
- package/esm/oas/example/Example.d.ts +2 -8
- package/esm/oas/example/Example.d.ts.map +1 -1
- package/esm/oas/example/Example.js +2 -4
- package/esm/oas/example/toExamplesV3.d.ts +6 -11
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +18 -17
- package/esm/oas/header/Header.d.ts +2 -8
- package/esm/oas/header/Header.d.ts.map +1 -1
- package/esm/oas/header/Header.js +2 -4
- package/esm/oas/header/toHeadersV3.d.ts +3 -5
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.js +9 -12
- package/esm/oas/info/Info.d.ts +2 -8
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +2 -4
- package/esm/oas/info/toInfoV3.d.ts +3 -5
- package/esm/oas/info/toInfoV3.d.ts.map +1 -1
- package/esm/oas/info/toInfoV3.js +3 -2
- package/esm/oas/integer/Integer.d.ts +2 -8
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +2 -4
- package/esm/oas/integer/toInteger.d.ts +3 -5
- package/esm/oas/integer/toInteger.d.ts.map +1 -1
- package/esm/oas/integer/toInteger.js +3 -2
- package/esm/oas/intersection/Intersection.d.ts +2 -8
- package/esm/oas/intersection/Intersection.d.ts.map +1 -1
- package/esm/oas/intersection/Intersection.js +2 -4
- package/esm/oas/intersection/toIntersection.d.ts +3 -5
- package/esm/oas/intersection/toIntersection.d.ts.map +1 -1
- package/esm/oas/intersection/toIntersection.js +6 -12
- package/esm/oas/mediaType/MediaType.d.ts +2 -8
- package/esm/oas/mediaType/MediaType.d.ts.map +1 -1
- package/esm/oas/mediaType/MediaType.js +2 -4
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts +7 -11
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/esm/oas/mediaType/toMediaTypeItemV3.js +17 -19
- package/esm/oas/number/Number.d.ts +2 -8
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +2 -4
- package/esm/oas/number/toNumber.d.ts +3 -5
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +3 -2
- package/esm/oas/object/Object.d.ts +5 -11
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +9 -21
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts +3 -5
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -1
- package/esm/oas/object/toAdditionalPropertiesV3.js +2 -6
- package/esm/oas/object/toObject.d.ts +3 -5
- package/esm/oas/object/toObject.d.ts.map +1 -1
- package/esm/oas/object/toObject.js +7 -10
- package/esm/oas/operation/Operation.d.ts +6 -11
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +9 -11
- package/esm/oas/operation/toOperationsV3.d.ts +5 -8
- package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/oas/operation/toOperationsV3.js +42 -53
- package/esm/oas/parameter/Parameter.d.ts +2 -8
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +3 -5
- package/esm/oas/parameter/toParameterV3.d.ts +7 -11
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.js +18 -24
- package/esm/oas/pathItem/PathItem.d.ts +2 -8
- package/esm/oas/pathItem/PathItem.d.ts.map +1 -1
- package/esm/oas/pathItem/PathItem.js +2 -4
- package/esm/oas/pathItem/toPathItemV3.d.ts +3 -5
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/esm/oas/pathItem/toPathItemV3.js +5 -7
- package/esm/oas/ref/Ref.d.ts +5 -10
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +9 -21
- package/esm/oas/ref/toRefV31.d.ts +3 -5
- package/esm/oas/ref/toRefV31.d.ts.map +1 -1
- package/esm/oas/ref/toRefV31.js +3 -2
- package/esm/oas/requestBody/RequestBody.d.ts +2 -8
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +2 -4
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts +5 -8
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/esm/oas/requestBody/toRequestBodiesV3.js +9 -18
- package/esm/oas/response/Response.d.ts +2 -8
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +2 -4
- package/esm/oas/response/toResponseV3.d.ts +7 -11
- package/esm/oas/response/toResponseV3.d.ts.map +1 -1
- package/esm/oas/response/toResponseV3.js +11 -13
- package/esm/oas/schema/toSchemasV3.d.ts +9 -14
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/oas/schema/toSchemasV3.js +22 -24
- package/esm/oas/string/String.d.ts +2 -8
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +2 -4
- package/esm/oas/string/toString.d.ts +3 -5
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/string/toString.js +3 -2
- package/esm/oas/tag/Tag.d.ts +2 -8
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +2 -4
- package/esm/oas/tag/toTagsV3.d.ts +8 -5
- package/esm/oas/tag/toTagsV3.d.ts.map +1 -1
- package/esm/oas/tag/toTagsV3.js +11 -9
- package/esm/oas/union/Union.d.ts +2 -8
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +2 -4
- package/esm/oas/union/toUnion.d.ts +3 -5
- package/esm/oas/union/toUnion.d.ts.map +1 -1
- package/esm/oas/union/toUnion.js +6 -12
- package/esm/oas/unknown/Unknown.d.ts +2 -8
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +2 -4
- package/esm/oas/unknown/toUnknown.d.ts +3 -5
- package/esm/oas/unknown/toUnknown.d.ts.map +1 -1
- package/esm/oas/unknown/toUnknown.js +3 -2
- package/esm/oas/void/Void.d.ts +3 -9
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +4 -10
- package/esm/typescript/ReactRouterPathParams.d.ts.map +1 -1
- package/esm/typescript/ReactRouterPathParams.js +3 -1
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +2 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +3 -3
- package/script/context/GenerateContext.d.ts +2 -2
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +1 -1
- package/script/context/ParseContext.d.ts +12 -5
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +17 -10
- package/script/context/StackTrail.d.ts +3 -3
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/StackTrail.js +9 -1
- package/script/helpers/tracer.d.ts +7 -0
- package/script/helpers/tracer.d.ts.map +1 -0
- package/script/helpers/tracer.js +10 -0
- package/script/oas/array/Array.d.ts +2 -8
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +2 -4
- package/script/oas/array/toArray.d.ts +3 -5
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/array/toArray.js +5 -7
- package/script/oas/boolean/Boolean.d.ts +2 -8
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +2 -4
- package/script/oas/boolean/toBoolean.d.ts +3 -5
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +3 -2
- package/script/oas/components/Components.d.ts +2 -8
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +2 -4
- package/script/oas/components/toComponentsV3.d.ts +3 -5
- package/script/oas/components/toComponentsV3.d.ts.map +1 -1
- package/script/oas/components/toComponentsV3.js +10 -22
- package/script/oas/discriminator/Discriminator.d.ts +2 -8
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/script/oas/discriminator/Discriminator.js +2 -4
- package/script/oas/discriminator/toDiscriminatorV3.d.ts +3 -5
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/script/oas/discriminator/toDiscriminatorV3.js +3 -2
- package/script/oas/document/Document.d.ts +2 -8
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/document/Document.js +2 -4
- package/script/oas/document/toDocumentV3.d.ts +3 -5
- package/script/oas/document/toDocumentV3.d.ts.map +1 -1
- package/script/oas/document/toDocumentV3.js +8 -14
- package/script/oas/example/Example.d.ts +2 -8
- package/script/oas/example/Example.d.ts.map +1 -1
- package/script/oas/example/Example.js +2 -4
- package/script/oas/example/toExamplesV3.d.ts +6 -11
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +18 -17
- package/script/oas/header/Header.d.ts +2 -8
- package/script/oas/header/Header.d.ts.map +1 -1
- package/script/oas/header/Header.js +2 -4
- package/script/oas/header/toHeadersV3.d.ts +3 -5
- package/script/oas/header/toHeadersV3.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.js +9 -12
- package/script/oas/info/Info.d.ts +2 -8
- package/script/oas/info/Info.d.ts.map +1 -1
- package/script/oas/info/Info.js +2 -4
- package/script/oas/info/toInfoV3.d.ts +3 -5
- package/script/oas/info/toInfoV3.d.ts.map +1 -1
- package/script/oas/info/toInfoV3.js +3 -2
- package/script/oas/integer/Integer.d.ts +2 -8
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +2 -4
- package/script/oas/integer/toInteger.d.ts +3 -5
- package/script/oas/integer/toInteger.d.ts.map +1 -1
- package/script/oas/integer/toInteger.js +3 -2
- package/script/oas/intersection/Intersection.d.ts +2 -8
- package/script/oas/intersection/Intersection.d.ts.map +1 -1
- package/script/oas/intersection/Intersection.js +2 -4
- package/script/oas/intersection/toIntersection.d.ts +3 -5
- package/script/oas/intersection/toIntersection.d.ts.map +1 -1
- package/script/oas/intersection/toIntersection.js +6 -12
- package/script/oas/mediaType/MediaType.d.ts +2 -8
- package/script/oas/mediaType/MediaType.d.ts.map +1 -1
- package/script/oas/mediaType/MediaType.js +2 -4
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts +7 -11
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/script/oas/mediaType/toMediaTypeItemV3.js +17 -19
- package/script/oas/number/Number.d.ts +2 -8
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +2 -4
- package/script/oas/number/toNumber.d.ts +3 -5
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +3 -2
- package/script/oas/object/Object.d.ts +5 -11
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +9 -21
- package/script/oas/object/toAdditionalPropertiesV3.d.ts +3 -5
- package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -1
- package/script/oas/object/toAdditionalPropertiesV3.js +2 -6
- package/script/oas/object/toObject.d.ts +3 -5
- package/script/oas/object/toObject.d.ts.map +1 -1
- package/script/oas/object/toObject.js +7 -10
- package/script/oas/operation/Operation.d.ts +6 -11
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +9 -11
- package/script/oas/operation/toOperationsV3.d.ts +5 -8
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/script/oas/operation/toOperationsV3.js +42 -53
- package/script/oas/parameter/Parameter.d.ts +2 -8
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +3 -5
- package/script/oas/parameter/toParameterV3.d.ts +7 -11
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.js +18 -24
- package/script/oas/pathItem/PathItem.d.ts +2 -8
- package/script/oas/pathItem/PathItem.d.ts.map +1 -1
- package/script/oas/pathItem/PathItem.js +2 -4
- package/script/oas/pathItem/toPathItemV3.d.ts +3 -5
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/script/oas/pathItem/toPathItemV3.js +5 -7
- package/script/oas/ref/Ref.d.ts +5 -10
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +9 -21
- package/script/oas/ref/toRefV31.d.ts +3 -5
- package/script/oas/ref/toRefV31.d.ts.map +1 -1
- package/script/oas/ref/toRefV31.js +3 -2
- package/script/oas/requestBody/RequestBody.d.ts +2 -8
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/script/oas/requestBody/RequestBody.js +2 -4
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +5 -8
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +9 -18
- package/script/oas/response/Response.d.ts +2 -8
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +2 -4
- package/script/oas/response/toResponseV3.d.ts +7 -11
- package/script/oas/response/toResponseV3.d.ts.map +1 -1
- package/script/oas/response/toResponseV3.js +11 -13
- package/script/oas/schema/toSchemasV3.d.ts +9 -14
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/script/oas/schema/toSchemasV3.js +22 -24
- package/script/oas/string/String.d.ts +2 -8
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +2 -4
- package/script/oas/string/toString.d.ts +3 -5
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/string/toString.js +3 -2
- package/script/oas/tag/Tag.d.ts +2 -8
- package/script/oas/tag/Tag.d.ts.map +1 -1
- package/script/oas/tag/Tag.js +2 -4
- package/script/oas/tag/toTagsV3.d.ts +8 -5
- package/script/oas/tag/toTagsV3.d.ts.map +1 -1
- package/script/oas/tag/toTagsV3.js +13 -10
- package/script/oas/union/Union.d.ts +2 -8
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +2 -4
- package/script/oas/union/toUnion.d.ts +3 -5
- package/script/oas/union/toUnion.d.ts.map +1 -1
- package/script/oas/union/toUnion.js +6 -12
- package/script/oas/unknown/Unknown.d.ts +2 -8
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +2 -4
- package/script/oas/unknown/toUnknown.d.ts +3 -5
- package/script/oas/unknown/toUnknown.d.ts.map +1 -1
- package/script/oas/unknown/toUnknown.js +3 -2
- package/script/oas/void/Void.d.ts +3 -9
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +4 -10
- package/script/typescript/ReactRouterPathParams.d.ts.map +1 -1
- package/script/typescript/ReactRouterPathParams.js +3 -1
- package/esm/dsl/OasBase.d.ts +0 -15
- package/esm/dsl/OasBase.d.ts.map +0 -1
- package/esm/dsl/OasBase.js +0 -28
- package/script/dsl/OasBase.d.ts +0 -15
- package/script/dsl/OasBase.d.ts.map +0 -1
- package/script/dsl/OasBase.js +0 -32
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
2
|
-
import type { Trail } from '../../context/Trail.js';
|
|
3
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
4
1
|
import type { OasMediaType } from '../mediaType/MediaType.js';
|
|
5
2
|
import type { OasRef } from '../ref/Ref.js';
|
|
6
3
|
import type { OasExample } from '../example/Example.js';
|
|
@@ -15,15 +12,12 @@ export type HeaderFields = {
|
|
|
15
12
|
};
|
|
16
13
|
type ToHeaderV3Args = {
|
|
17
14
|
fields: HeaderFields;
|
|
18
|
-
trail: Trail;
|
|
19
|
-
skipped: Record<string, unknown>;
|
|
20
|
-
context: CoreContext;
|
|
21
15
|
};
|
|
22
16
|
/** Describes a single header in the API */
|
|
23
|
-
export declare class OasHeader
|
|
17
|
+
export declare class OasHeader {
|
|
24
18
|
#private;
|
|
25
19
|
oasType: 'header';
|
|
26
|
-
constructor({ fields
|
|
20
|
+
constructor({ fields }: ToHeaderV3Args);
|
|
27
21
|
/** Brief description of header */
|
|
28
22
|
get description(): string | undefined;
|
|
29
23
|
/** Indicates if header is mandatory. Default value is `false` */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/oas/header/Header.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/oas/header/Header.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAA;IAChD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAA;IACpE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,CAAA;CAClD,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAA;AAED,2CAA2C;AAC3C,qBAAa,SAAS;;IACpB,OAAO,EAAE,QAAQ,CAAW;gBAGhB,EAAE,MAAM,EAAE,EAAE,cAAc;IAItC,kCAAkC;IAClC,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,iEAAiE;IACjE,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAElC;IAED,6FAA6F;IAC7F,IAAI,UAAU,IAAI,OAAO,GAAG,SAAS,CAEpC;IAED,4BAA4B;IAC5B,IAAI,MAAM,IAAI,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAErD;IAED,6BAA6B;IAC7B,IAAI,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAEzE;IAED,4BAA4B;IAC5B,IAAI,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,CAEtD;IAED,4CAA4C;IAC5C,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,qBAAqB;IACrB,OAAO,IAAI,SAAS;IAIpB,WAAW,IAAI,SAAS;IAIxB;;;;OAIG;IACH,QAAQ,CACN,SAAS,GAAE,MAA2B,GACrC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;CAO5C"}
|
|
@@ -13,11 +13,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _OasHeader_fields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OasHeader = void 0;
|
|
16
|
-
const OasBase_js_1 = require("../../dsl/OasBase.js");
|
|
17
16
|
/** Describes a single header in the API */
|
|
18
|
-
class OasHeader
|
|
19
|
-
constructor({ fields
|
|
20
|
-
super({ trail, skipped, context });
|
|
17
|
+
class OasHeader {
|
|
18
|
+
constructor({ fields }) {
|
|
21
19
|
Object.defineProperty(this, "oasType", {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
configurable: true,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParseContext } from '../../context/ParseContext.js';
|
|
2
2
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
|
-
import type { Trail } from '../../context/Trail.js';
|
|
4
3
|
import { OasHeader } from './Header.js';
|
|
5
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
6
5
|
type ToHeadersV3Args = {
|
|
7
6
|
headers: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.HeaderObject> | undefined;
|
|
8
|
-
|
|
9
|
-
context: CoreContext;
|
|
7
|
+
context: ParseContext;
|
|
10
8
|
};
|
|
11
|
-
export declare const toHeadersV3: ({ headers,
|
|
9
|
+
export declare const toHeadersV3: ({ headers, context }: ToHeadersV3Args) => Record<string, OasHeader | OasRef<"header">> | undefined;
|
|
12
10
|
export {};
|
|
13
11
|
//# sourceMappingURL=toHeadersV3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toHeadersV3.d.ts","sourceRoot":"","sources":["../../../src/oas/header/toHeadersV3.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toHeadersV3.d.ts","sourceRoot":"","sources":["../../../src/oas/header/toHeadersV3.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,eAAe,GAAG;IACrB,OAAO,EACH,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,GAClE,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,WAAW,yBAGrB,eAAe,KACd,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,GAC5C,SAaH,CAAA"}
|
|
@@ -7,40 +7,37 @@ const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
|
|
|
7
7
|
const refFns_js_1 = require("../../helpers/refFns.js");
|
|
8
8
|
const toMediaTypeItemV3_js_1 = require("../mediaType/toMediaTypeItemV3.js");
|
|
9
9
|
const Header_js_1 = require("./Header.js");
|
|
10
|
-
const
|
|
10
|
+
const tracer_js_1 = require("../../helpers/tracer.js");
|
|
11
|
+
const toHeadersV3 = ({ headers, context }) => {
|
|
11
12
|
if (!headers) {
|
|
12
13
|
return undefined;
|
|
13
14
|
}
|
|
14
15
|
return Object.fromEntries(Object.entries(headers).map(([key, value]) => {
|
|
15
16
|
return [
|
|
16
17
|
key,
|
|
17
|
-
toHeaderV3({ header: value,
|
|
18
|
+
(0, tracer_js_1.tracer)(context, key, () => toHeaderV3({ header: value, context }))
|
|
18
19
|
];
|
|
19
20
|
}));
|
|
20
21
|
};
|
|
21
22
|
exports.toHeadersV3 = toHeadersV3;
|
|
22
|
-
const toHeaderV3 = ({ header,
|
|
23
|
+
const toHeaderV3 = ({ header, context }) => {
|
|
23
24
|
if ((0, refFns_js_1.isRef)(header)) {
|
|
24
|
-
return (0, toRefV31_js_1.toRefV31)({ ref: header, refType: 'header',
|
|
25
|
+
return (0, toRefV31_js_1.toRefV31)({ ref: header, refType: 'header', context });
|
|
25
26
|
}
|
|
26
27
|
const { description, required, deprecated, schema, example, examples, content, ...skipped } = header;
|
|
28
|
+
context.logSkippedFields(skipped);
|
|
27
29
|
const fields = {
|
|
28
30
|
description,
|
|
29
31
|
required,
|
|
30
32
|
deprecated,
|
|
31
|
-
schema: (0,
|
|
33
|
+
schema: (0, tracer_js_1.tracer)(context, 'schema', () => (0, toSchemasV3_js_1.toOptionalSchemaV3)({ schema, context })),
|
|
32
34
|
examples: (0, toExamplesV3_js_1.toExamplesV3)({
|
|
33
35
|
examples,
|
|
34
36
|
example,
|
|
35
37
|
exampleKey: `TEMP`,
|
|
36
|
-
trail,
|
|
37
38
|
context
|
|
38
39
|
}),
|
|
39
|
-
content: (0, toMediaTypeItemV3_js_1.toOptionalMediaTypeItemsV3)({
|
|
40
|
-
content,
|
|
41
|
-
trail: trail.add('content'),
|
|
42
|
-
context
|
|
43
|
-
})
|
|
40
|
+
content: (0, tracer_js_1.tracer)(context, 'content', () => (0, toMediaTypeItemV3_js_1.toOptionalMediaTypeItemsV3)({ content, context }))
|
|
44
41
|
};
|
|
45
|
-
return new Header_js_1.OasHeader({ fields
|
|
42
|
+
return new Header_js_1.OasHeader({ fields });
|
|
46
43
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
2
1
|
import type { OasLicenseData } from '../license/license-types.js';
|
|
3
2
|
import type { OasContactData } from '../contact/contact-types.js';
|
|
4
|
-
import type { Trail } from '../../context/Trail.js';
|
|
5
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
6
3
|
export type InfoFields = {
|
|
7
4
|
title: string;
|
|
8
5
|
version: string;
|
|
@@ -13,14 +10,11 @@ export type InfoFields = {
|
|
|
13
10
|
};
|
|
14
11
|
type ToInfoV3Args = {
|
|
15
12
|
fields: InfoFields;
|
|
16
|
-
trail: Trail;
|
|
17
|
-
context: CoreContext;
|
|
18
|
-
skipped: Record<string, unknown>;
|
|
19
13
|
};
|
|
20
|
-
export declare class OasInfo
|
|
14
|
+
export declare class OasInfo {
|
|
21
15
|
#private;
|
|
22
16
|
oasType: 'info';
|
|
23
|
-
constructor({ fields
|
|
17
|
+
constructor({ fields }: ToInfoV3Args);
|
|
24
18
|
get title(): string;
|
|
25
19
|
get description(): string | undefined;
|
|
26
20
|
get termsOfService(): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../src/oas/info/Info.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../src/oas/info/Info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,OAAO,EAAE,cAAc,GAAG,SAAS,CAAA;IACnC,OAAO,EAAE,cAAc,GAAG,SAAS,CAAA;CACpC,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,UAAU,CAAA;CACnB,CAAA;AAED,qBAAa,OAAO;;IAClB,OAAO,EAAE,MAAM,CAAS;gBAGZ,EAAE,MAAM,EAAE,EAAE,YAAY;IAIpC,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,cAAc,IAAI,MAAM,GAAG,SAAS,CAEvC;IAED,IAAI,OAAO,IAAI,cAAc,GAAG,SAAS,CAExC;IAED,IAAI,OAAO,IAAI,cAAc,GAAG,SAAS,CAExC;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;CACF"}
|
package/script/oas/info/Info.js
CHANGED
|
@@ -13,10 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _OasInfo_fields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OasInfo = void 0;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor({ fields, trail, skipped, context }) {
|
|
19
|
-
super({ trail, skipped, context });
|
|
16
|
+
class OasInfo {
|
|
17
|
+
constructor({ fields }) {
|
|
20
18
|
Object.defineProperty(this, "oasType", {
|
|
21
19
|
enumerable: true,
|
|
22
20
|
configurable: true,
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
3
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
2
|
+
import type { ParseContext } from '../../context/ParseContext.js';
|
|
4
3
|
import { OasInfo } from './Info.js';
|
|
5
4
|
type ToInfoV3Args = {
|
|
6
5
|
info: OpenAPIV3.InfoObject;
|
|
7
|
-
|
|
8
|
-
context: CoreContext;
|
|
6
|
+
context: ParseContext;
|
|
9
7
|
};
|
|
10
|
-
export declare const toInfoV3: ({ info,
|
|
8
|
+
export declare const toInfoV3: ({ info, context }: ToInfoV3Args) => OasInfo;
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=toInfoV3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toInfoV3.d.ts","sourceRoot":"","sources":["../../../src/oas/info/toInfoV3.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toInfoV3.d.ts","sourceRoot":"","sources":["../../../src/oas/info/toInfoV3.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,UAAU,CAAA;IAC1B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,OAuB1D,CAAA"}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toInfoV3 = void 0;
|
|
4
4
|
const Info_js_1 = require("./Info.js");
|
|
5
|
-
const toInfoV3 = ({ info,
|
|
5
|
+
const toInfoV3 = ({ info, context }) => {
|
|
6
6
|
const { title, description, termsOfService, contact, license, version, ...skipped } = info;
|
|
7
|
+
context.logSkippedFields(skipped);
|
|
7
8
|
const fields = {
|
|
8
9
|
title,
|
|
9
10
|
description,
|
|
@@ -12,7 +13,7 @@ const toInfoV3 = ({ info, trail, context }) => {
|
|
|
12
13
|
license: license ? toLicense(license) : undefined,
|
|
13
14
|
version
|
|
14
15
|
};
|
|
15
|
-
return new Info_js_1.OasInfo({ fields
|
|
16
|
+
return new Info_js_1.OasInfo({ fields });
|
|
16
17
|
};
|
|
17
18
|
exports.toInfoV3 = toInfoV3;
|
|
18
19
|
const toLicense = (license) => ({
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
2
|
-
import type { Trail } from '../../context/Trail.js';
|
|
3
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
4
1
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
2
|
export type IntegerFields = {
|
|
6
3
|
title?: string;
|
|
@@ -11,15 +8,12 @@ export type IntegerFields = {
|
|
|
11
8
|
};
|
|
12
9
|
type ToIntegerV3Args = {
|
|
13
10
|
fields: IntegerFields;
|
|
14
|
-
trail: Trail;
|
|
15
|
-
skipped: Record<string, unknown>;
|
|
16
|
-
context: CoreContext;
|
|
17
11
|
};
|
|
18
|
-
export declare class OasInteger
|
|
12
|
+
export declare class OasInteger {
|
|
19
13
|
#private;
|
|
20
14
|
oasType: 'schema';
|
|
21
15
|
type: 'integer';
|
|
22
|
-
constructor({ fields
|
|
16
|
+
constructor({ fields }: ToIntegerV3Args);
|
|
23
17
|
get title(): string | undefined;
|
|
24
18
|
get description(): string | undefined;
|
|
25
19
|
get nullable(): boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/Integer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/Integer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,qBAAa,UAAU;;IACrB,OAAO,EAAE,QAAQ,CAAW;IAC5B,IAAI,EAAE,SAAS,CAAY;gBAGf,EAAE,MAAM,EAAE,EAAE,eAAe;IAIvC,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAElC;IAED,IAAI,MAAM,IAAI,OAAO,GAAG,OAAO,GAAG,SAAS,CAE1C;IAED,IAAI,KAAK,IAAI,MAAM,EAAE,GAAG,SAAS,CAEhC;IAED,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,UAAU;IAIrB,WAAW,IAAI,UAAU;CAG1B"}
|
|
@@ -13,10 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _OasInteger_fields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OasInteger = void 0;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor({ fields, trail, skipped, context }) {
|
|
19
|
-
super({ trail, skipped, context });
|
|
16
|
+
class OasInteger {
|
|
17
|
+
constructor({ fields }) {
|
|
20
18
|
Object.defineProperty(this, "oasType", {
|
|
21
19
|
enumerable: true,
|
|
22
20
|
configurable: true,
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
3
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
2
|
+
import type { ParseContext } from '../../context/ParseContext.js';
|
|
4
3
|
import { OasInteger } from './Integer.js';
|
|
5
4
|
type ToIntegerArgs = {
|
|
6
5
|
value: OpenAPIV3.NonArraySchemaObject;
|
|
7
|
-
|
|
8
|
-
context: CoreContext;
|
|
6
|
+
context: ParseContext;
|
|
9
7
|
};
|
|
10
|
-
export declare const toInteger: ({ value,
|
|
8
|
+
export declare const toInteger: ({ value, context }: ToIntegerArgs) => OasInteger;
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=toInteger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toInteger.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/toInteger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toInteger.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/toInteger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAsB,UAAU,EAAE,MAAM,cAAc,CAAA;AAG7D,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,SAAS,uBAAwB,aAAa,KAAG,UAsB7D,CAAA"}
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.toInteger = void 0;
|
|
4
4
|
const Integer_js_1 = require("./Integer.js");
|
|
5
5
|
const integer_types_js_1 = require("./integer-types.js");
|
|
6
|
-
const toInteger = ({ value,
|
|
6
|
+
const toInteger = ({ value, context }) => {
|
|
7
7
|
const { type: _type, title, description, nullable, format, enum: enums, ...skipped } = integer_types_js_1.oasIntegerData.parse(value);
|
|
8
|
+
context.logSkippedFields(skipped);
|
|
8
9
|
const fields = {
|
|
9
10
|
title,
|
|
10
11
|
description,
|
|
@@ -12,6 +13,6 @@ const toInteger = ({ value, trail, context }) => {
|
|
|
12
13
|
format,
|
|
13
14
|
enums
|
|
14
15
|
};
|
|
15
|
-
return new Integer_js_1.OasInteger({ fields
|
|
16
|
+
return new Integer_js_1.OasInteger({ fields });
|
|
16
17
|
};
|
|
17
18
|
exports.toInteger = toInteger;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
2
|
-
import type { Trail } from '../../context/Trail.js';
|
|
3
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
4
1
|
import type { OasDiscriminator } from '../discriminator/Discriminator.js';
|
|
5
2
|
import type { OasRef } from '../ref/Ref.js';
|
|
6
3
|
import type { OasSchema } from '../schema/Schema.js';
|
|
@@ -13,15 +10,12 @@ export type IntersectionFields = {
|
|
|
13
10
|
};
|
|
14
11
|
type ToIntersectionV3Args = {
|
|
15
12
|
fields: IntersectionFields;
|
|
16
|
-
trail: Trail;
|
|
17
|
-
skipped: Record<string, unknown>;
|
|
18
|
-
context: CoreContext;
|
|
19
13
|
};
|
|
20
|
-
export declare class OasIntersection
|
|
14
|
+
export declare class OasIntersection {
|
|
21
15
|
#private;
|
|
22
16
|
oasType: 'schema';
|
|
23
17
|
type: 'intersection';
|
|
24
|
-
constructor({ fields
|
|
18
|
+
constructor({ fields }: ToIntersectionV3Args);
|
|
25
19
|
get title(): string | undefined;
|
|
26
20
|
get description(): string | undefined;
|
|
27
21
|
get discriminator(): OasDiscriminator | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Intersection.d.ts","sourceRoot":"","sources":["../../../src/oas/intersection/Intersection.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Intersection.d.ts","sourceRoot":"","sources":["../../../src/oas/intersection/Intersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,gBAAgB,CAAA;IAChC,OAAO,EAAE,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAA;CAC1C,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,kBAAkB,CAAA;CAC3B,CAAA;AAED,qBAAa,eAAe;;IAC1B,OAAO,EAAE,QAAQ,CAAW;IAC5B,IAAI,EAAE,cAAc,CAAiB;gBAGzB,EAAE,MAAM,EAAE,EAAE,oBAAoB;IAI5C,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,aAAa,IAAI,gBAAgB,GAAG,SAAS,CAEhD;IAED,IAAI,OAAO,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAE9C;IAED,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAElC;IAED,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,eAAe;IAI1B,WAAW,IAAI,eAAe;CAG/B"}
|
|
@@ -13,10 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _OasIntersection_fields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OasIntersection = void 0;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor({ fields, trail, skipped, context }) {
|
|
19
|
-
super({ trail, skipped, context });
|
|
16
|
+
class OasIntersection {
|
|
17
|
+
constructor({ fields }) {
|
|
20
18
|
Object.defineProperty(this, "oasType", {
|
|
21
19
|
enumerable: true,
|
|
22
20
|
configurable: true,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
3
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
2
|
+
import type { ParseContext } from '../../context/ParseContext.js';
|
|
4
3
|
import { OasIntersection } from './Intersection.js';
|
|
5
4
|
type ToIntersectionArgs = {
|
|
6
5
|
value: OpenAPIV3.SchemaObject;
|
|
7
6
|
members: (OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject)[];
|
|
8
|
-
|
|
9
|
-
context: CoreContext;
|
|
7
|
+
context: ParseContext;
|
|
10
8
|
};
|
|
11
|
-
export declare const toIntersection: ({ value, members,
|
|
9
|
+
export declare const toIntersection: ({ value, members, context }: ToIntersectionArgs) => OasIntersection;
|
|
12
10
|
export {};
|
|
13
11
|
//# sourceMappingURL=toIntersection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toIntersection.d.ts","sourceRoot":"","sources":["../../../src/oas/intersection/toIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toIntersection.d.ts","sourceRoot":"","sources":["../../../src/oas/intersection/toIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAA2B,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAK5E,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,OAAO,EAAE,CAAC,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,EAAE,CAAA;IAC/D,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,gCAIxB,kBAAkB,KAAG,eAkBvB,CAAA"}
|
|
@@ -4,23 +4,17 @@ exports.toIntersection = void 0;
|
|
|
4
4
|
const Intersection_js_1 = require("./Intersection.js");
|
|
5
5
|
const toDiscriminatorV3_js_1 = require("../discriminator/toDiscriminatorV3.js");
|
|
6
6
|
const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
|
|
7
|
-
const
|
|
7
|
+
const tracer_js_1 = require("../../helpers/tracer.js");
|
|
8
|
+
const toIntersection = ({ value, members, context }) => {
|
|
8
9
|
const { discriminator, title, description, nullable, ...skipped } = value;
|
|
10
|
+
context.logSkippedFields(skipped);
|
|
9
11
|
const fields = {
|
|
10
12
|
title,
|
|
11
13
|
description,
|
|
12
14
|
nullable,
|
|
13
|
-
discriminator: (0, toDiscriminatorV3_js_1.toDiscriminatorV3)({
|
|
14
|
-
|
|
15
|
-
trail: trail.add('allOf').add('discriminator'),
|
|
16
|
-
context
|
|
17
|
-
}),
|
|
18
|
-
members: members.map((item, index) => (0, toSchemasV3_js_1.toSchemaV3)({
|
|
19
|
-
schema: item,
|
|
20
|
-
trail: trail.add('allOf').add(`${index}`),
|
|
21
|
-
context
|
|
22
|
-
}))
|
|
15
|
+
discriminator: (0, tracer_js_1.tracer)(context, 'discriminator', () => (0, toDiscriminatorV3_js_1.toDiscriminatorV3)({ discriminator, context })),
|
|
16
|
+
members: members.map((schema, index) => (0, tracer_js_1.tracer)(context, index, () => (0, toSchemasV3_js_1.toSchemaV3)({ schema, context })))
|
|
23
17
|
};
|
|
24
|
-
return new Intersection_js_1.OasIntersection({ fields
|
|
18
|
+
return new Intersection_js_1.OasIntersection({ fields });
|
|
25
19
|
};
|
|
26
20
|
exports.toIntersection = toIntersection;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
2
|
-
import type { Trail } from '../../context/Trail.js';
|
|
3
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
4
1
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
2
|
import type { OasSchema } from '../schema/Schema.js';
|
|
6
3
|
import type { OasExample } from '../example/Example.js';
|
|
@@ -11,14 +8,11 @@ export type MediaTypeFields = {
|
|
|
11
8
|
};
|
|
12
9
|
type ToMediaTypeV3Args = {
|
|
13
10
|
fields: MediaTypeFields;
|
|
14
|
-
trail: Trail;
|
|
15
|
-
context: CoreContext;
|
|
16
|
-
skipped: Record<string, unknown>;
|
|
17
11
|
};
|
|
18
|
-
export declare class OasMediaType
|
|
12
|
+
export declare class OasMediaType {
|
|
19
13
|
#private;
|
|
20
14
|
oasType: 'mediaType';
|
|
21
|
-
constructor({ fields
|
|
15
|
+
constructor({ fields }: ToMediaTypeV3Args);
|
|
22
16
|
get mediaType(): string;
|
|
23
17
|
get schema(): OasSchema | OasRef<'schema'> | undefined;
|
|
24
18
|
get examples(): Record<string, OasExample | OasRef<'example'>> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaType.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/MediaType.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MediaType.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/MediaType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAA;IAChD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAA;CACrE,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,eAAe,CAAA;CACxB,CAAA;AAED,qBAAa,YAAY;;IACvB,OAAO,EAAE,WAAW,CAAc;gBAGtB,EAAE,MAAM,EAAE,EAAE,iBAAiB;IAIzC,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,MAAM,IAAI,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAErD;IAED,IAAI,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAEzE;CACF"}
|
|
@@ -13,10 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _OasMediaType_fields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OasMediaType = void 0;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor({ fields, trail, skipped, context }) {
|
|
19
|
-
super({ trail, skipped, context });
|
|
16
|
+
class OasMediaType {
|
|
17
|
+
constructor({ fields }) {
|
|
20
18
|
Object.defineProperty(this, "oasType", {
|
|
21
19
|
enumerable: true,
|
|
22
20
|
configurable: true,
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
3
|
-
import type { Trail } from '../../context/Trail.js';
|
|
2
|
+
import type { ParseContext } from '../../context/ParseContext.js';
|
|
4
3
|
import { OasMediaType } from './MediaType.js';
|
|
5
4
|
type ToMediaTypeItemV3Args = {
|
|
6
5
|
mediaTypeItem: OpenAPIV3.MediaTypeObject;
|
|
7
6
|
mediaType: string;
|
|
8
|
-
|
|
9
|
-
context: CoreContext;
|
|
7
|
+
context: ParseContext;
|
|
10
8
|
};
|
|
11
|
-
export declare const toMediaTypeItemV3: ({ mediaTypeItem, mediaType,
|
|
9
|
+
export declare const toMediaTypeItemV3: ({ mediaTypeItem, mediaType, context }: ToMediaTypeItemV3Args) => OasMediaType;
|
|
12
10
|
type ToMediaTypeItemsV3Args = {
|
|
13
11
|
content: Record<string, OpenAPIV3.MediaTypeObject>;
|
|
14
|
-
|
|
15
|
-
context: CoreContext;
|
|
12
|
+
context: ParseContext;
|
|
16
13
|
};
|
|
17
|
-
export declare const toMediaTypeItemsV3: ({ content,
|
|
14
|
+
export declare const toMediaTypeItemsV3: ({ content, context }: ToMediaTypeItemsV3Args) => Record<string, OasMediaType>;
|
|
18
15
|
type ToOptionalMediaTypeItemsV3Args = {
|
|
19
16
|
content: Record<string, OpenAPIV3.MediaTypeObject> | undefined;
|
|
20
|
-
|
|
21
|
-
context: CoreContext;
|
|
17
|
+
context: ParseContext;
|
|
22
18
|
};
|
|
23
|
-
export declare const toOptionalMediaTypeItemsV3: ({ content,
|
|
19
|
+
export declare const toOptionalMediaTypeItemsV3: ({ content, context }: ToOptionalMediaTypeItemsV3Args) => Record<string, OasMediaType> | undefined;
|
|
24
20
|
export {};
|
|
25
21
|
//# sourceMappingURL=toMediaTypeItemV3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toMediaTypeItemV3.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/toMediaTypeItemV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toMediaTypeItemV3.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/toMediaTypeItemV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAI7C,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,SAAS,CAAC,eAAe,CAAA;IACxC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,0CAI3B,qBAAqB,KAAG,YAqB1B,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,CAAA;IAClD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,yBAG5B,sBAAsB,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAatD,CAAA;AAED,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;IAC9D,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,0BAA0B,yBAGpC,8BAA8B,KAC7B,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAC5B,SAMH,CAAA"}
|
|
@@ -4,40 +4,38 @@ exports.toOptionalMediaTypeItemsV3 = exports.toMediaTypeItemsV3 = exports.toMedi
|
|
|
4
4
|
const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
|
|
5
5
|
const toExamplesV3_js_1 = require("../example/toExamplesV3.js");
|
|
6
6
|
const MediaType_js_1 = require("./MediaType.js");
|
|
7
|
-
const
|
|
7
|
+
const tracer_js_1 = require("../../helpers/tracer.js");
|
|
8
|
+
const toMediaTypeItemV3 = ({ mediaTypeItem, mediaType, context }) => {
|
|
8
9
|
const { schema, example, examples, ...skipped } = mediaTypeItem;
|
|
10
|
+
context.logSkippedFields(skipped);
|
|
9
11
|
const fields = {
|
|
10
12
|
mediaType,
|
|
11
|
-
schema: (0,
|
|
12
|
-
examples: (0, toExamplesV3_js_1.toExamplesV3)({
|
|
13
|
+
schema: (0, tracer_js_1.tracer)(context, 'schema', () => (0, toSchemasV3_js_1.toOptionalSchemaV3)({ schema, context })),
|
|
14
|
+
examples: (0, tracer_js_1.tracer)(context, 'examples', () => (0, toExamplesV3_js_1.toExamplesV3)({
|
|
13
15
|
example,
|
|
14
16
|
examples,
|
|
15
17
|
exampleKey: mediaType,
|
|
16
|
-
trail: trail.add('examples'),
|
|
17
18
|
context
|
|
18
|
-
})
|
|
19
|
+
}))
|
|
19
20
|
};
|
|
20
|
-
return new MediaType_js_1.OasMediaType({ fields
|
|
21
|
+
return new MediaType_js_1.OasMediaType({ fields });
|
|
21
22
|
};
|
|
22
23
|
exports.toMediaTypeItemV3 = toMediaTypeItemV3;
|
|
23
|
-
const toMediaTypeItemsV3 = ({ content,
|
|
24
|
-
return Object.fromEntries(Object.entries(content).map(([mediaType, value]) =>
|
|
25
|
-
|
|
24
|
+
const toMediaTypeItemsV3 = ({ content, context }) => {
|
|
25
|
+
return Object.fromEntries(Object.entries(content).map(([mediaType, value]) => [
|
|
26
|
+
mediaType,
|
|
27
|
+
(0, tracer_js_1.tracer)(context, mediaType, () => (0, exports.toMediaTypeItemV3)({
|
|
28
|
+
mediaTypeItem: value,
|
|
26
29
|
mediaType,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
trail: trail.add(mediaType),
|
|
31
|
-
context
|
|
32
|
-
})
|
|
33
|
-
];
|
|
34
|
-
}));
|
|
30
|
+
context
|
|
31
|
+
}))
|
|
32
|
+
]));
|
|
35
33
|
};
|
|
36
34
|
exports.toMediaTypeItemsV3 = toMediaTypeItemsV3;
|
|
37
|
-
const toOptionalMediaTypeItemsV3 = ({ content,
|
|
35
|
+
const toOptionalMediaTypeItemsV3 = ({ content, context }) => {
|
|
38
36
|
if (!content) {
|
|
39
37
|
return;
|
|
40
38
|
}
|
|
41
|
-
return (0, exports.toMediaTypeItemsV3)({ content,
|
|
39
|
+
return (0, exports.toMediaTypeItemsV3)({ content, context });
|
|
42
40
|
};
|
|
43
41
|
exports.toOptionalMediaTypeItemsV3 = toOptionalMediaTypeItemsV3;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
2
|
-
import type { Trail } from '../../context/Trail.js';
|
|
3
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
4
1
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
2
|
export type NumberFields = {
|
|
6
3
|
title?: string;
|
|
@@ -9,15 +6,12 @@ export type NumberFields = {
|
|
|
9
6
|
};
|
|
10
7
|
type ToNumberV3Args = {
|
|
11
8
|
fields: NumberFields;
|
|
12
|
-
trail: Trail;
|
|
13
|
-
skipped: Record<string, unknown>;
|
|
14
|
-
context: CoreContext;
|
|
15
9
|
};
|
|
16
|
-
export declare class OasNumber
|
|
10
|
+
export declare class OasNumber {
|
|
17
11
|
#private;
|
|
18
12
|
oasType: 'schema';
|
|
19
13
|
type: 'number';
|
|
20
|
-
constructor({ fields
|
|
14
|
+
constructor({ fields }: ToNumberV3Args);
|
|
21
15
|
get title(): string | undefined;
|
|
22
16
|
get description(): string | undefined;
|
|
23
17
|
get nullable(): boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/oas/number/Number.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/oas/number/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAA;AAED,qBAAa,SAAS;;IACpB,OAAO,EAAE,QAAQ,CAAW;IAC5B,IAAI,EAAE,QAAQ,CAAW;gBAGb,EAAE,MAAM,EAAE,EAAE,cAAc;IAItC,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAElC;IAED,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,SAAS;IAIpB,WAAW,IAAI,SAAS;CAGzB"}
|
|
@@ -13,10 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _OasNumber_fields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OasNumber = void 0;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor({ fields, trail, skipped, context }) {
|
|
19
|
-
super({ trail, skipped, context });
|
|
16
|
+
class OasNumber {
|
|
17
|
+
constructor({ fields }) {
|
|
20
18
|
Object.defineProperty(this, "oasType", {
|
|
21
19
|
enumerable: true,
|
|
22
20
|
configurable: true,
|