@skmtc/core 0.0.299 → 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 +7 -4
- 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 +7 -4
- 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,7 +1,8 @@
|
|
|
1
1
|
import { OasInteger } from './Integer.js';
|
|
2
2
|
import { oasIntegerData } from './integer-types.js';
|
|
3
|
-
export const toInteger = ({ value,
|
|
3
|
+
export const toInteger = ({ value, context }) => {
|
|
4
4
|
const { type: _type, title, description, nullable, format, enum: enums, ...skipped } = oasIntegerData.parse(value);
|
|
5
|
+
context.logSkippedFields(skipped);
|
|
5
6
|
const fields = {
|
|
6
7
|
title,
|
|
7
8
|
description,
|
|
@@ -9,5 +10,5 @@ export const toInteger = ({ value, trail, context }) => {
|
|
|
9
10
|
format,
|
|
10
11
|
enums
|
|
11
12
|
};
|
|
12
|
-
return new OasInteger({ fields
|
|
13
|
+
return new OasInteger({ fields });
|
|
13
14
|
};
|
|
@@ -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"}
|
|
@@ -10,10 +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 _OasIntersection_fields;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
constructor({ fields, trail, skipped, context }) {
|
|
16
|
-
super({ trail, skipped, context });
|
|
13
|
+
export class OasIntersection {
|
|
14
|
+
constructor({ fields }) {
|
|
17
15
|
Object.defineProperty(this, "oasType", {
|
|
18
16
|
enumerable: true,
|
|
19
17
|
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"}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { OasIntersection } from './Intersection.js';
|
|
2
2
|
import { toDiscriminatorV3 } from '../discriminator/toDiscriminatorV3.js';
|
|
3
3
|
import { toSchemaV3 } from '../schema/toSchemasV3.js';
|
|
4
|
-
|
|
4
|
+
import { tracer } from '../../helpers/tracer.js';
|
|
5
|
+
export const toIntersection = ({ value, members, context }) => {
|
|
5
6
|
const { discriminator, title, description, nullable, ...skipped } = value;
|
|
7
|
+
context.logSkippedFields(skipped);
|
|
6
8
|
const fields = {
|
|
7
9
|
title,
|
|
8
10
|
description,
|
|
9
11
|
nullable,
|
|
10
|
-
discriminator: toDiscriminatorV3({
|
|
11
|
-
|
|
12
|
-
trail: trail.add('allOf').add('discriminator'),
|
|
13
|
-
context
|
|
14
|
-
}),
|
|
15
|
-
members: members.map((item, index) => toSchemaV3({
|
|
16
|
-
schema: item,
|
|
17
|
-
trail: trail.add('allOf').add(`${index}`),
|
|
18
|
-
context
|
|
19
|
-
}))
|
|
12
|
+
discriminator: tracer(context, 'discriminator', () => toDiscriminatorV3({ discriminator, context })),
|
|
13
|
+
members: members.map((schema, index) => tracer(context, index, () => toSchemaV3({ schema, context })))
|
|
20
14
|
};
|
|
21
|
-
return new OasIntersection({ fields
|
|
15
|
+
return new OasIntersection({ fields });
|
|
22
16
|
};
|
|
@@ -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"}
|
|
@@ -10,10 +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 _OasMediaType_fields;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
constructor({ fields, trail, skipped, context }) {
|
|
16
|
-
super({ trail, skipped, context });
|
|
13
|
+
export class OasMediaType {
|
|
14
|
+
constructor({ fields }) {
|
|
17
15
|
Object.defineProperty(this, "oasType", {
|
|
18
16
|
enumerable: true,
|
|
19
17
|
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"}
|
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
import { toOptionalSchemaV3 } from '../schema/toSchemasV3.js';
|
|
2
2
|
import { toExamplesV3 } from '../example/toExamplesV3.js';
|
|
3
3
|
import { OasMediaType } from './MediaType.js';
|
|
4
|
-
|
|
4
|
+
import { tracer } from '../../helpers/tracer.js';
|
|
5
|
+
export const toMediaTypeItemV3 = ({ mediaTypeItem, mediaType, context }) => {
|
|
5
6
|
const { schema, example, examples, ...skipped } = mediaTypeItem;
|
|
7
|
+
context.logSkippedFields(skipped);
|
|
6
8
|
const fields = {
|
|
7
9
|
mediaType,
|
|
8
|
-
schema:
|
|
9
|
-
examples: toExamplesV3({
|
|
10
|
+
schema: tracer(context, 'schema', () => toOptionalSchemaV3({ schema, context })),
|
|
11
|
+
examples: tracer(context, 'examples', () => toExamplesV3({
|
|
10
12
|
example,
|
|
11
13
|
examples,
|
|
12
14
|
exampleKey: mediaType,
|
|
13
|
-
trail: trail.add('examples'),
|
|
14
15
|
context
|
|
15
|
-
})
|
|
16
|
+
}))
|
|
16
17
|
};
|
|
17
|
-
return new OasMediaType({ fields
|
|
18
|
+
return new OasMediaType({ fields });
|
|
18
19
|
};
|
|
19
|
-
export const toMediaTypeItemsV3 = ({ content,
|
|
20
|
-
return Object.fromEntries(Object.entries(content).map(([mediaType, value]) =>
|
|
21
|
-
|
|
20
|
+
export const toMediaTypeItemsV3 = ({ content, context }) => {
|
|
21
|
+
return Object.fromEntries(Object.entries(content).map(([mediaType, value]) => [
|
|
22
|
+
mediaType,
|
|
23
|
+
tracer(context, mediaType, () => toMediaTypeItemV3({
|
|
24
|
+
mediaTypeItem: value,
|
|
22
25
|
mediaType,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
trail: trail.add(mediaType),
|
|
27
|
-
context
|
|
28
|
-
})
|
|
29
|
-
];
|
|
30
|
-
}));
|
|
26
|
+
context
|
|
27
|
+
}))
|
|
28
|
+
]));
|
|
31
29
|
};
|
|
32
|
-
export const toOptionalMediaTypeItemsV3 = ({ content,
|
|
30
|
+
export const toOptionalMediaTypeItemsV3 = ({ content, context }) => {
|
|
33
31
|
if (!content) {
|
|
34
32
|
return;
|
|
35
33
|
}
|
|
36
|
-
return toMediaTypeItemsV3({ content,
|
|
34
|
+
return toMediaTypeItemsV3({ content, context });
|
|
37
35
|
};
|
|
@@ -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"}
|
package/esm/oas/number/Number.js
CHANGED
|
@@ -10,10 +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 _OasNumber_fields;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
constructor({ fields, trail, skipped, context }) {
|
|
16
|
-
super({ trail, skipped, context });
|
|
13
|
+
export class OasNumber {
|
|
14
|
+
constructor({ fields }) {
|
|
17
15
|
Object.defineProperty(this, "oasType", {
|
|
18
16
|
enumerable: true,
|
|
19
17
|
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 { OasNumber } from './Number.js';
|
|
5
4
|
type ToNumberArgs = {
|
|
6
5
|
value: OpenAPIV3.NonArraySchemaObject;
|
|
7
|
-
|
|
8
|
-
context: CoreContext;
|
|
6
|
+
context: ParseContext;
|
|
9
7
|
};
|
|
10
|
-
export declare const toNumber: ({ value,
|
|
8
|
+
export declare const toNumber: ({ value, context }: ToNumberArgs) => OasNumber;
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=toNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toNumber.d.ts","sourceRoot":"","sources":["../../../src/oas/number/toNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toNumber.d.ts","sourceRoot":"","sources":["../../../src/oas/number/toNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAqB,SAAS,EAAE,MAAM,aAAa,CAAA;AAE1D,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SAY3D,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OasNumber } from './Number.js';
|
|
2
|
-
export const toNumber = ({ value,
|
|
2
|
+
export const toNumber = ({ value, context }) => {
|
|
3
3
|
const { type: _type, title, description, nullable, ...skipped } = value;
|
|
4
|
+
context.logSkippedFields(skipped);
|
|
4
5
|
const fields = {
|
|
5
6
|
title,
|
|
6
7
|
description,
|
|
7
8
|
nullable
|
|
8
9
|
};
|
|
9
|
-
return new OasNumber({ fields
|
|
10
|
+
return new OasNumber({ fields });
|
|
10
11
|
};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
2
|
-
import { 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 { CustomValue } from '../../types/CustomValue.js';
|
|
7
4
|
export type OasObjectFields = {
|
|
8
5
|
title?: string;
|
|
9
6
|
description?: string;
|
|
10
|
-
properties: Record<string, OasSchema | OasRef<'schema'> | CustomValue
|
|
11
|
-
required: string[];
|
|
7
|
+
properties: Record<string, OasSchema | OasRef<'schema'> | CustomValue> | undefined;
|
|
8
|
+
required: string[] | undefined;
|
|
12
9
|
additionalProperties?: boolean | OasSchema | OasRef<'schema'>;
|
|
13
10
|
nullable?: boolean;
|
|
14
11
|
};
|
|
@@ -22,17 +19,14 @@ export type AddPropertyArgs = {
|
|
|
22
19
|
};
|
|
23
20
|
type ToObjectV3Args = {
|
|
24
21
|
fields: OasObjectFields;
|
|
25
|
-
trail: Trail;
|
|
26
|
-
skipped: Record<string, unknown>;
|
|
27
|
-
context: CoreContext;
|
|
28
22
|
};
|
|
29
|
-
export declare class OasObject
|
|
23
|
+
export declare class OasObject {
|
|
30
24
|
#private;
|
|
31
25
|
oasType: 'schema';
|
|
32
26
|
type: 'object';
|
|
33
|
-
constructor({ fields
|
|
27
|
+
constructor({ fields }: ToObjectV3Args);
|
|
34
28
|
/** Creates new empty OasObject */
|
|
35
|
-
static empty(
|
|
29
|
+
static empty(): OasObject;
|
|
36
30
|
get title(): string | undefined;
|
|
37
31
|
get description(): string | undefined;
|
|
38
32
|
get properties(): Record<string, OasSchema | OasRef<'schema'> | CustomValue> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Object.d.ts","sourceRoot":"","sources":["../../../src/oas/object/Object.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Object.d.ts","sourceRoot":"","sources":["../../../src/oas/object/Object.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,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EACN,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,WAAW,CAAC,GAC1D,SAAS,CAAA;IACb,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,WAAW,GAAG,SAAS,CAAA;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,eAAe,CAAA;CACxB,CAAA;AAED,qBAAa,SAAS;;IACpB,OAAO,EAAE,QAAQ,CAAW;IAC5B,IAAI,EAAE,QAAQ,CAAW;gBAGb,EAAE,MAAM,EAAE,EAAE,cAAc;IAItC,kCAAkC;IAClC,MAAM,CAAC,KAAK,IAAI,SAAS;IASzB,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,UAAU,IACV,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,WAAW,CAAC,GAC1D,SAAS,CAEZ;IAED,IAAI,QAAQ,IAAI,MAAM,EAAE,GAAG,SAAS,CAEnC;IAED,IAAI,oBAAoB,IACpB,OAAO,GACP,SAAS,GACT,MAAM,CAAC,QAAQ,CAAC,GAChB,SAAS,CAEZ;IAED,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAElC;IAED,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,eAAe,GAAG,SAAS;IAmBnE,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,kBAAkB,GAAG,SAAS;IAgBvD,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,SAAS;IAIpB,WAAW,IAAI,SAAS;CAGzB"}
|
package/esm/oas/object/Object.js
CHANGED
|
@@ -10,11 +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 _OasObject_fields;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export class OasObject extends OasBase {
|
|
16
|
-
constructor({ fields, trail, skipped, context }) {
|
|
17
|
-
super({ trail, skipped, context });
|
|
13
|
+
export class OasObject {
|
|
14
|
+
constructor({ fields }) {
|
|
18
15
|
Object.defineProperty(this, "oasType", {
|
|
19
16
|
enumerable: true,
|
|
20
17
|
configurable: true,
|
|
@@ -31,15 +28,12 @@ export class OasObject extends OasBase {
|
|
|
31
28
|
__classPrivateFieldSet(this, _OasObject_fields, fields, "f");
|
|
32
29
|
}
|
|
33
30
|
/** Creates new empty OasObject */
|
|
34
|
-
static empty(
|
|
31
|
+
static empty() {
|
|
35
32
|
return new OasObject({
|
|
36
33
|
fields: {
|
|
37
34
|
properties: {},
|
|
38
35
|
required: []
|
|
39
|
-
}
|
|
40
|
-
trail: new Trail(),
|
|
41
|
-
context,
|
|
42
|
-
skipped: {}
|
|
36
|
+
}
|
|
43
37
|
});
|
|
44
38
|
}
|
|
45
39
|
get title() {
|
|
@@ -72,16 +66,13 @@ export class OasObject extends OasBase {
|
|
|
72
66
|
[name]: schema
|
|
73
67
|
},
|
|
74
68
|
required: required
|
|
75
|
-
? [...__classPrivateFieldGet(this, _OasObject_fields, "f").required, name]
|
|
69
|
+
? [...(__classPrivateFieldGet(this, _OasObject_fields, "f").required ?? []), name]
|
|
76
70
|
: __classPrivateFieldGet(this, _OasObject_fields, "f").required
|
|
77
|
-
}
|
|
78
|
-
trail: this.trail.clone(),
|
|
79
|
-
context: this.context,
|
|
80
|
-
skipped: {}
|
|
71
|
+
}
|
|
81
72
|
});
|
|
82
73
|
}
|
|
83
74
|
removeProperty({ name }) {
|
|
84
|
-
if (!__classPrivateFieldGet(this, _OasObject_fields, "f").properties[name]) {
|
|
75
|
+
if (!__classPrivateFieldGet(this, _OasObject_fields, "f").properties?.[name]) {
|
|
85
76
|
return this;
|
|
86
77
|
}
|
|
87
78
|
const { [name]: _removed, ...properties } = __classPrivateFieldGet(this, _OasObject_fields, "f").properties;
|
|
@@ -89,11 +80,8 @@ export class OasObject extends OasBase {
|
|
|
89
80
|
fields: {
|
|
90
81
|
...__classPrivateFieldGet(this, _OasObject_fields, "f"),
|
|
91
82
|
properties,
|
|
92
|
-
required: __classPrivateFieldGet(this, _OasObject_fields, "f").required
|
|
93
|
-
}
|
|
94
|
-
trail: this.trail.clone(),
|
|
95
|
-
context: this.context,
|
|
96
|
-
skipped: {}
|
|
83
|
+
required: __classPrivateFieldGet(this, _OasObject_fields, "f").required?.filter(n => n !== name)
|
|
84
|
+
}
|
|
97
85
|
});
|
|
98
86
|
}
|
|
99
87
|
isRef() {
|
|
@@ -1,13 +1,11 @@
|
|
|
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 type { OasSchema } from '../schema/Schema.js';
|
|
5
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
6
5
|
type ToAdditionalPropertiesV3Args = {
|
|
7
6
|
additionalProperties: boolean | OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject | undefined;
|
|
8
|
-
|
|
9
|
-
context: CoreContext;
|
|
7
|
+
context: ParseContext;
|
|
10
8
|
};
|
|
11
|
-
export declare const toAdditionalPropertiesV3: ({ additionalProperties,
|
|
9
|
+
export declare const toAdditionalPropertiesV3: ({ additionalProperties, context }: ToAdditionalPropertiesV3Args) => OasSchema | OasRef<"schema"> | boolean | undefined;
|
|
12
10
|
export {};
|
|
13
11
|
//# sourceMappingURL=toAdditionalPropertiesV3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toAdditionalPropertiesV3.d.ts","sourceRoot":"","sources":["../../../src/oas/object/toAdditionalPropertiesV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toAdditionalPropertiesV3.d.ts","sourceRoot":"","sources":["../../../src/oas/object/toAdditionalPropertiesV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,KAAK,4BAA4B,GAAG;IAClC,oBAAoB,EAChB,OAAO,GACP,SAAS,CAAC,eAAe,GACzB,SAAS,CAAC,YAAY,GACtB,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,wBAAwB,sCAGlC,4BAA4B,KAC3B,SAAS,GACT,MAAM,CAAC,QAAQ,CAAC,GAChB,OAAO,GACP,SAUH,CAAA"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { toSchemaV3 } from '../schema/toSchemasV3.js';
|
|
2
|
-
export const toAdditionalPropertiesV3 = ({ additionalProperties,
|
|
2
|
+
export const toAdditionalPropertiesV3 = ({ additionalProperties, context }) => {
|
|
3
3
|
if (typeof additionalProperties === 'boolean') {
|
|
4
4
|
return additionalProperties;
|
|
5
5
|
}
|
|
6
6
|
if (additionalProperties === undefined) {
|
|
7
7
|
return undefined;
|
|
8
8
|
}
|
|
9
|
-
return toSchemaV3({
|
|
10
|
-
schema: additionalProperties,
|
|
11
|
-
trail,
|
|
12
|
-
context
|
|
13
|
-
});
|
|
9
|
+
return toSchemaV3({ schema: additionalProperties, context });
|
|
14
10
|
};
|
|
@@ -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 { OasObject } from './Object.js';
|
|
5
4
|
type ToObjectArgs = {
|
|
6
5
|
value: OpenAPIV3.NonArraySchemaObject;
|
|
7
|
-
|
|
8
|
-
context: CoreContext;
|
|
6
|
+
context: ParseContext;
|
|
9
7
|
};
|
|
10
|
-
export declare const toObject: ({ value,
|
|
8
|
+
export declare const toObject: ({ value, context }: ToObjectArgs) => OasObject;
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=toObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toObject.d.ts","sourceRoot":"","sources":["../../../src/oas/object/toObject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toObject.d.ts","sourceRoot":"","sources":["../../../src/oas/object/toObject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,SAAS,EAAwB,MAAM,aAAa,CAAA;AAK7D,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SA+B3D,CAAA"}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { OasObject } from './Object.js';
|
|
2
2
|
import { toOptionalSchemasV3 } from '../schema/toSchemasV3.js';
|
|
3
3
|
import { toAdditionalPropertiesV3 } from './toAdditionalPropertiesV3.js';
|
|
4
|
-
|
|
4
|
+
import { tracer } from '../../helpers/tracer.js';
|
|
5
|
+
export const toObject = ({ value, context }) => {
|
|
5
6
|
const { type: _type, title, description, properties, required, additionalProperties, nullable, ...skipped } = value;
|
|
7
|
+
context.logSkippedFields(skipped);
|
|
6
8
|
const fields = {
|
|
7
9
|
title,
|
|
8
10
|
description,
|
|
9
11
|
nullable,
|
|
10
|
-
properties: toOptionalSchemasV3({
|
|
12
|
+
properties: tracer(context, 'properties', () => toOptionalSchemasV3({
|
|
11
13
|
schemas: properties,
|
|
12
|
-
trail: trail.add('properties'),
|
|
13
14
|
context
|
|
14
|
-
})
|
|
15
|
+
})),
|
|
15
16
|
required: required ?? [],
|
|
16
|
-
additionalProperties: toAdditionalPropertiesV3({
|
|
17
|
-
additionalProperties,
|
|
18
|
-
trail: trail.add('additionalProperties'),
|
|
19
|
-
context
|
|
20
|
-
})
|
|
17
|
+
additionalProperties: tracer(context, 'additionalProperties', () => toAdditionalPropertiesV3({ additionalProperties, context }))
|
|
21
18
|
};
|
|
22
|
-
return new OasObject({ fields
|
|
19
|
+
return new OasObject({ fields });
|
|
23
20
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OasBase } from '../../dsl/OasBase.js';
|
|
2
|
-
import type { CoreContext } from '../../context/CoreContext.js';
|
|
3
|
-
import type { Trail } from '../../context/Trail.js';
|
|
4
1
|
import type { Method } from '../../types/Method.js';
|
|
5
2
|
import type { OasPathItem } from '../pathItem/PathItem.js';
|
|
6
3
|
import type { OasParameter } from '../parameter/Parameter.js';
|
|
@@ -10,6 +7,7 @@ import type { OasParameterLocation } from '../parameter/parameter-types.js';
|
|
|
10
7
|
import type { OasSchema } from '../schema/Schema.js';
|
|
11
8
|
import type { OasRef } from '../ref/Ref.js';
|
|
12
9
|
import { OasObject } from '../object/Object.js';
|
|
10
|
+
import type { OasDocument } from '../document/Document.js';
|
|
13
11
|
export type OperationFields = {
|
|
14
12
|
path: string;
|
|
15
13
|
method: Method;
|
|
@@ -25,25 +23,22 @@ export type OperationFields = {
|
|
|
25
23
|
};
|
|
26
24
|
type ToOperationV3Args = {
|
|
27
25
|
fields: OperationFields;
|
|
28
|
-
trail: Trail;
|
|
29
|
-
context: CoreContext;
|
|
30
|
-
skipped: Record<string, unknown>;
|
|
31
26
|
};
|
|
32
27
|
/** Operation represents a resource path and a method that can be enacted against it */
|
|
33
|
-
export declare class OasOperation
|
|
28
|
+
export declare class OasOperation {
|
|
34
29
|
#private;
|
|
35
30
|
oasType: 'operation';
|
|
36
|
-
constructor({ fields
|
|
31
|
+
constructor({ fields }: ToOperationV3Args);
|
|
37
32
|
toSuccessResponse(): OasResponse | OasRef<'response'>;
|
|
38
|
-
toRequestBody(mediaType?: string): OasSchema | OasRef<'schema'> | undefined;
|
|
33
|
+
toRequestBody(schemaModel: OasDocument, mediaType?: string): OasSchema | OasRef<'schema'> | undefined;
|
|
39
34
|
/**
|
|
40
35
|
* Resolve all parameters and optionally filter by location
|
|
41
36
|
*
|
|
42
37
|
* @param filter - only include parameters from specified locations
|
|
43
38
|
* @returns
|
|
44
39
|
*/
|
|
45
|
-
toParams(filter?: OasParameterLocation[]): OasParameter[];
|
|
46
|
-
toParametersObject(filter?: OasParameterLocation[]): OasObject;
|
|
40
|
+
toParams(schemaModel: OasDocument, filter?: OasParameterLocation[]): OasParameter[];
|
|
41
|
+
toParametersObject(schemaModel: OasDocument, filter?: OasParameterLocation[]): OasObject;
|
|
47
42
|
get path(): string;
|
|
48
43
|
get method(): Method;
|
|
49
44
|
get pathItem(): OasPathItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/Operation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Operation.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/Operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,WAAW,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,UAAU,EAAE,CAAC,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,SAAS,CAAA;IAC9D,WAAW,EAAE,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,SAAS,CAAA;IAC/D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAA;IAC3D,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,eAAe,CAAA;CACxB,CAAA;AACD,uFAAuF;AACvF,qBAAa,YAAY;;IACvB,OAAO,EAAE,WAAW,CAAc;gBAGtB,EAAE,MAAM,EAAE,EAAE,iBAAiB;IAIzC,iBAAiB,IAAI,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;IAWrD,aAAa,CACX,WAAW,EAAE,WAAW,EACxB,SAAS,SAAqB,GAC7B,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAI3C;;;;;OAKG;IACH,QAAQ,CACN,WAAW,EAAE,WAAW,EACxB,MAAM,CAAC,EAAE,oBAAoB,EAAE,GAC9B,YAAY,EAAE;IAUjB,kBAAkB,CAChB,WAAW,EAAE,WAAW,EACxB,MAAM,CAAC,EAAE,oBAAoB,EAAE;IAajC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,OAAO,IAAI,MAAM,GAAG,SAAS,CAEhC;IAED,IAAI,IAAI,IAAI,MAAM,EAAE,GAAG,SAAS,CAE/B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAI,UAAU,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,SAAS,CAEnE;IAED,IAAI,WAAW,IAAI,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,SAAS,CAEpE;IAED,IAAI,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAEhE;IAED,IAAI,UAAU,IAAI,OAAO,GAAG,SAAS,CAEpC;CACF"}
|