@skmtc/core 0.0.935 → 0.0.939
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 +1 -1
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.d.ts +1 -1
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/ParseContext.d.ts +3 -55
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/RenderContext.d.ts +2 -2
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/{types.d.ts → generateTypes.d.ts} +2 -2
- package/esm/context/generateTypes.d.ts.map +1 -0
- package/esm/context/parseTypes.d.ts +70 -0
- package/esm/context/parseTypes.d.ts.map +1 -0
- package/esm/context/parseTypes.js +1 -0
- package/esm/dsl/ContentBase.d.ts +2 -2
- package/esm/dsl/ContentBase.d.ts.map +1 -1
- package/{script/types → esm/dsl}/CustomValue.d.ts +5 -5
- package/esm/dsl/CustomValue.d.ts.map +1 -0
- package/esm/{types → dsl}/CustomValue.js +1 -1
- package/esm/dsl/Definition.d.ts +1 -1
- package/esm/dsl/Definition.d.ts.map +1 -1
- package/esm/dsl/model/ModelBase.d.ts +2 -2
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts +1 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.d.ts +1 -1
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/types.d.ts +1 -1
- package/esm/dsl/model/types.d.ts.map +1 -1
- package/esm/dsl/operation/OperationBase.d.ts +1 -1
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/types.d.ts +1 -1
- package/esm/dsl/operation/types.d.ts.map +1 -1
- package/esm/mod.d.ts +2 -2
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +2 -2
- package/esm/oas/_helpers/parseEnum.d.ts +2 -2
- package/esm/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/esm/oas/_helpers/parseNullable.d.ts +2 -2
- package/esm/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/esm/oas/array/toArray.d.ts +3 -3
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.d.ts +3 -3
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/components/toComponentsV3.d.ts +2 -2
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
- package/esm/oas/contact/toContactV3.d.ts +2 -2
- package/esm/oas/contact/toContactV3.d.ts.map +1 -1
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts +2 -2
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/esm/oas/document/toDocumentFieldsV3.d.ts +2 -2
- package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.d.ts +3 -3
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +7 -1
- package/esm/oas/externalDocs/toExternalDocs.d.ts +2 -2
- package/esm/oas/externalDocs/toExternalDocs.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.d.ts +2 -2
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
- package/esm/oas/info/toInfoV3.d.ts +2 -2
- package/esm/oas/info/toInfoV3.d.ts.map +1 -1
- package/esm/oas/integer/toInteger.d.ts +3 -3
- package/esm/oas/integer/toInteger.d.ts.map +1 -1
- package/esm/oas/license/toLicenseV3.d.ts +2 -2
- package/esm/oas/license/toLicenseV3.d.ts.map +1 -1
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts +4 -4
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/esm/oas/number/toNumber.d.ts +2 -2
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/object/Object.d.ts +1 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts +2 -2
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -1
- package/esm/oas/object/toObject.d.ts +2 -2
- package/esm/oas/object/toObject.d.ts.map +1 -1
- package/esm/oas/operation/toOperationsV3.d.ts +3 -3
- package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.d.ts +4 -4
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/pathItem/toPathItemV3.d.ts +2 -2
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/esm/oas/ref/toRefV31.d.ts +2 -2
- package/esm/oas/ref/toRefV31.d.ts.map +1 -1
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts +3 -3
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/esm/oas/response/toResponseV3.d.ts +4 -4
- package/esm/oas/response/toResponseV3.d.ts.map +1 -1
- package/esm/oas/schema/toSchemasV3.d.ts +5 -5
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/oas/securityRequirement/toSecurityRequirement.d.ts +2 -2
- package/esm/oas/securityRequirement/toSecurityRequirement.d.ts.map +1 -1
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts +2 -2
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/oas/server/toServerV3.d.ts +4 -4
- package/esm/oas/server/toServerV3.d.ts.map +1 -1
- package/esm/oas/serverVariable/toServerVariableV3.d.ts +4 -4
- package/esm/oas/serverVariable/toServerVariableV3.d.ts.map +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +2 -2
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/esm/oas/string/toString.d.ts +3 -3
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/tag/toTagsV3.d.ts +3 -3
- package/esm/oas/tag/toTagsV3.d.ts.map +1 -1
- package/esm/oas/union/toUnion.d.ts +2 -2
- package/esm/oas/union/toUnion.d.ts.map +1 -1
- package/esm/oas/unknown/toUnknown.d.ts +2 -2
- package/esm/oas/unknown/toUnknown.d.ts.map +1 -1
- package/esm/oas/unknown/toUnknown.js +1 -0
- package/esm/types/TypeSystem.d.ts +2 -2
- package/esm/types/TypeSystem.d.ts.map +1 -1
- package/package.json +3 -3
- package/script/context/CoreContext.d.ts +1 -1
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/GenerateContext.d.ts +1 -1
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/ParseContext.d.ts +3 -55
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/RenderContext.d.ts +2 -2
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/{types.d.ts → generateTypes.d.ts} +2 -2
- package/script/context/generateTypes.d.ts.map +1 -0
- package/script/context/parseTypes.d.ts +70 -0
- package/script/context/parseTypes.d.ts.map +1 -0
- package/script/context/parseTypes.js +2 -0
- package/script/dsl/ContentBase.d.ts +2 -2
- package/script/dsl/ContentBase.d.ts.map +1 -1
- package/{esm/types → script/dsl}/CustomValue.d.ts +5 -5
- package/script/dsl/CustomValue.d.ts.map +1 -0
- package/script/{types → dsl}/CustomValue.js +1 -1
- package/script/dsl/Definition.d.ts +1 -1
- package/script/dsl/Definition.d.ts.map +1 -1
- package/script/dsl/model/ModelBase.d.ts +2 -2
- package/script/dsl/model/ModelBase.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.d.ts +1 -1
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.d.ts +4 -4
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/types.d.ts +1 -1
- package/script/dsl/model/types.d.ts.map +1 -1
- package/script/dsl/operation/OperationBase.d.ts +1 -1
- package/script/dsl/operation/OperationBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.d.ts +1 -1
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.d.ts +6 -6
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/types.d.ts +1 -1
- package/script/dsl/operation/types.d.ts.map +1 -1
- package/script/mod.d.ts +2 -2
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +2 -2
- package/script/oas/_helpers/parseEnum.d.ts +2 -2
- package/script/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/script/oas/_helpers/parseNullable.d.ts +2 -2
- package/script/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/script/oas/array/toArray.d.ts +3 -3
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.d.ts +3 -3
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/components/toComponentsV3.d.ts +2 -2
- package/script/oas/components/toComponentsV3.d.ts.map +1 -1
- package/script/oas/contact/toContactV3.d.ts +2 -2
- package/script/oas/contact/toContactV3.d.ts.map +1 -1
- package/script/oas/discriminator/toDiscriminatorV3.d.ts +2 -2
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/script/oas/document/toDocumentFieldsV3.d.ts +2 -2
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.d.ts +3 -3
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +7 -1
- package/script/oas/externalDocs/toExternalDocs.d.ts +2 -2
- package/script/oas/externalDocs/toExternalDocs.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.d.ts +2 -2
- package/script/oas/header/toHeadersV3.d.ts.map +1 -1
- package/script/oas/info/toInfoV3.d.ts +2 -2
- package/script/oas/info/toInfoV3.d.ts.map +1 -1
- package/script/oas/integer/toInteger.d.ts +3 -3
- package/script/oas/integer/toInteger.d.ts.map +1 -1
- package/script/oas/license/toLicenseV3.d.ts +2 -2
- package/script/oas/license/toLicenseV3.d.ts.map +1 -1
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts +4 -4
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/script/oas/number/toNumber.d.ts +2 -2
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/object/Object.d.ts +1 -1
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/toAdditionalPropertiesV3.d.ts +2 -2
- package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -1
- package/script/oas/object/toObject.d.ts +2 -2
- package/script/oas/object/toObject.d.ts.map +1 -1
- package/script/oas/operation/toOperationsV3.d.ts +3 -3
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.d.ts +4 -4
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/pathItem/toPathItemV3.d.ts +2 -2
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/script/oas/ref/toRefV31.d.ts +2 -2
- package/script/oas/ref/toRefV31.d.ts.map +1 -1
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +3 -3
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/script/oas/response/toResponseV3.d.ts +4 -4
- package/script/oas/response/toResponseV3.d.ts.map +1 -1
- package/script/oas/schema/toSchemasV3.d.ts +5 -5
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/script/oas/securityRequirement/toSecurityRequirement.d.ts +2 -2
- package/script/oas/securityRequirement/toSecurityRequirement.d.ts.map +1 -1
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts +2 -2
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/oas/server/toServerV3.d.ts +4 -4
- package/script/oas/server/toServerV3.d.ts.map +1 -1
- package/script/oas/serverVariable/toServerVariableV3.d.ts +4 -4
- package/script/oas/serverVariable/toServerVariableV3.d.ts.map +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +2 -2
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/script/oas/string/toString.d.ts +3 -3
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/tag/toTagsV3.d.ts +3 -3
- package/script/oas/tag/toTagsV3.d.ts.map +1 -1
- package/script/oas/union/toUnion.d.ts +2 -2
- package/script/oas/union/toUnion.d.ts.map +1 -1
- package/script/oas/unknown/toUnknown.d.ts +2 -2
- package/script/oas/unknown/toUnknown.d.ts.map +1 -1
- package/script/oas/unknown/toUnknown.js +1 -0
- package/script/types/TypeSystem.d.ts +2 -2
- package/script/types/TypeSystem.d.ts.map +1 -1
- package/esm/context/types.d.ts.map +0 -1
- package/esm/types/CustomValue.d.ts.map +0 -1
- package/script/context/types.d.ts.map +0 -1
- package/script/types/CustomValue.d.ts.map +0 -1
- /package/esm/context/{types.js → generateTypes.js} +0 -0
- /package/script/context/{types.js → generateTypes.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
2
2
|
type ParseEnumArgs = {
|
|
3
3
|
value: unknown;
|
|
4
4
|
nullable: boolean | undefined;
|
|
5
5
|
parent: unknown;
|
|
6
6
|
check: (item: unknown) => boolean;
|
|
7
7
|
toMessage: (item: unknown) => string;
|
|
8
|
-
context:
|
|
8
|
+
context: ParseContextType;
|
|
9
9
|
};
|
|
10
10
|
export declare const parseEnum: ({ value, nullable, parent, context, check, toMessage }: ParseEnumArgs) => any[] | undefined;
|
|
11
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseEnum.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseEnum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"parseEnum.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseEnum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAA;IACjC,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,MAAM,CAAA;IACpC,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,wDAOvB,aAAa,sBA0Bf,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
/**
|
|
4
4
|
* Arguments for parsing the nullable property from OpenAPI schemas.
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@ export type ParseNullableArgs<Value extends OpenAPIV3.SchemaObject> = {
|
|
|
9
9
|
/** The OpenAPI schema object containing the nullable property */
|
|
10
10
|
value: Value;
|
|
11
11
|
/** Parse context for error handling */
|
|
12
|
-
context:
|
|
12
|
+
context: ParseContextType;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* Return type for parsed nullable data.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseNullable.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseNullable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"parseNullable.d.ts","sourceRoot":"","sources":["../../../src/oas/_helpers/parseNullable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,SAAS,CAAC,YAAY,IAAI;IACpE,iEAAiE;IACjE,KAAK,EAAE,KAAK,CAAA;IACZ,uCAAuC;IACvC,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,SAAS,CAAC,YAAY,IAAI;IACtE,8DAA8D;IAC9D,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,sDAAsD;IACtD,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;CAC/B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,SAAS,CAAC,YAAY,EAAE,oBAGjE,iBAAiB,CAAC,KAAK,CAAC,KAAG,mBAAmB,CAAC,KAAK,CA6BtD,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
import { OasArray } from './Array.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
4
4
|
type ToArrayArgs = {
|
|
5
5
|
value: OpenAPIV3.ArraySchemaObject;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Transforms an OpenAPI v3 array schema object into an internal OAS array representation.
|
|
@@ -67,7 +67,7 @@ type ToArrayArgs = {
|
|
|
67
67
|
export declare const toArray: ({ value, context }: ToArrayArgs) => OasArray;
|
|
68
68
|
type ToParsedArrayArgs<Nullable extends boolean | undefined> = {
|
|
69
69
|
value: Omit<OpenAPIV3.ArraySchemaObject, 'nullable' | 'example' | 'enums' | 'default'>;
|
|
70
|
-
context:
|
|
70
|
+
context: ParseContextType;
|
|
71
71
|
nullable: Nullable;
|
|
72
72
|
example: Nullable extends true ? unknown[] | null | undefined : unknown[] | undefined;
|
|
73
73
|
enums: Nullable extends true ? (unknown[] | null)[] | undefined : unknown[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toArray.d.ts","sourceRoot":"","sources":["../../../src/oas/array/toArray.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toArray.d.ts","sourceRoot":"","sources":["../../../src/oas/array/toArray.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAOnE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,CAAC,iBAAiB,CAAA;IAClC,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,eAAO,MAAM,OAAO,GAAI,oBAAoB,WAAW,KAAG,QA8CzD,CAAA;AAED,KAAK,iBAAiB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC7D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAA;IACtF,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACrF,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACvF,YAAY,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;CAC3F,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,4DAOjE,iBAAiB,CAAC,QAAQ,CAAC,KAAG,QAAQ,CAAC,QAAQ,CAkDjD,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasBoolean } from './Boolean.js';
|
|
4
4
|
type ToBooleanArgs = {
|
|
5
5
|
value: OpenAPIV3.SchemaObject;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Transforms an OpenAPI v3 boolean schema object into an internal OAS boolean representation.
|
|
@@ -65,7 +65,7 @@ type ToBooleanArgs = {
|
|
|
65
65
|
export declare const toBoolean: ({ value, context }: ToBooleanArgs) => OasBoolean;
|
|
66
66
|
type ToParsedBooleanArgs<Nullable extends boolean | undefined> = {
|
|
67
67
|
value: Omit<OpenAPIV3.SchemaObject, 'nullable' | 'example' | 'enums'>;
|
|
68
|
-
context:
|
|
68
|
+
context: ParseContextType;
|
|
69
69
|
nullable: Nullable;
|
|
70
70
|
example: Nullable extends true ? boolean | null | undefined : boolean | undefined;
|
|
71
71
|
enums: Nullable extends true ? (boolean | null)[] | undefined : boolean[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toBoolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/toBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toBoolean.d.ts","sourceRoot":"","sources":["../../../src/oas/boolean/toBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAOzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,eAAO,MAAM,SAAS,GAAI,oBAAoB,aAAa,KAAG,UAiD7D,CAAA;AAED,KAAK,mBAAmB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC/D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAA;IACrE,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IACjF,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;IACrF,YAAY,EAAE,QAAQ,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACvF,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,4DAOnE,mBAAmB,CAAC,QAAQ,CAAC,KAAG,UAAU,CAAC,QAAQ,CA0BrD,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasComponents } from './Components.js';
|
|
4
4
|
type ToComponentsV3Args = {
|
|
5
5
|
components: OpenAPIV3.ComponentsObject | undefined;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toComponentsV3: ({ components, context }: ToComponentsV3Args) => OasComponents | undefined;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toComponentsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/components/toComponentsV3.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toComponentsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/components/toComponentsV3.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAM/C,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,SAAS,CAAC,gBAAgB,GAAG,SAAS,CAAA;IAClD,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,yBAG5B,kBAAkB,KAAG,aAAa,GAAG,SAgDvC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasContact } from './Contact.js';
|
|
4
|
-
export declare const toContactV3: (contact: OpenAPIV3.ContactObject, context:
|
|
4
|
+
export declare const toContactV3: (contact: OpenAPIV3.ContactObject, context: ParseContextType) => OasContact;
|
|
5
5
|
//# sourceMappingURL=toContactV3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toContactV3.d.ts","sourceRoot":"","sources":["../../../src/oas/contact/toContactV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toContactV3.d.ts","sourceRoot":"","sources":["../../../src/oas/contact/toContactV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,GACtB,SAAS,SAAS,CAAC,aAAa,EAChC,SAAS,gBAAgB,KACxB,UAgBF,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasDiscriminator } from './Discriminator.js';
|
|
4
4
|
type ToDiscriminatorV3Args = {
|
|
5
5
|
discriminator: OpenAPIV3.DiscriminatorObject | undefined;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toDiscriminatorV3: ({ discriminator, context }: ToDiscriminatorV3Args) => OasDiscriminator | undefined;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toDiscriminatorV3.d.ts","sourceRoot":"","sources":["../../../src/oas/discriminator/toDiscriminatorV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toDiscriminatorV3.d.ts","sourceRoot":"","sources":["../../../src/oas/discriminator/toDiscriminatorV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,SAAS,CAAC,mBAAmB,GAAG,SAAS,CAAA;IACxD,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,4BAG/B,qBAAqB,KAAG,gBAAgB,GAAG,SAe7C,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import type { DocumentFields } from './Document.js';
|
|
4
4
|
type ToDocumentV3Args = {
|
|
5
5
|
documentObject: OpenAPIV3.Document;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toDocumentFieldsV3: ({ documentObject, context }: ToDocumentV3Args) => DocumentFields;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toDocumentFieldsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/document/toDocumentFieldsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toDocumentFieldsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/document/toDocumentFieldsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAKnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAOnD,KAAK,gBAAgB,GAAG;IACtB,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,6BAGhC,gBAAgB,KAAG,cA4BrB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
2
2
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
3
|
import { OasExample } from './Example.js';
|
|
4
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
@@ -29,7 +29,7 @@ export type ToExamplesV3Args = {
|
|
|
29
29
|
/** Key name for the example context */
|
|
30
30
|
exampleKey: string;
|
|
31
31
|
/** Parse context for tracing and error handling */
|
|
32
|
-
context:
|
|
32
|
+
context: ParseContextType;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
35
|
* Processes OpenAPI v3 examples into OAS example objects.
|
|
@@ -44,7 +44,7 @@ export type ToExamplesV3Args = {
|
|
|
44
44
|
export declare const toExamplesV3: ({ example, examples, exampleKey, context }: ToExamplesV3Args) => Record<string, OasExample | OasRef<"example">> | undefined;
|
|
45
45
|
type ToExampleV3Args = {
|
|
46
46
|
example: OpenAPIV3.ExampleObject | OpenAPIV3.ReferenceObject;
|
|
47
|
-
context:
|
|
47
|
+
context: ParseContextType;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* Processes a single OpenAPI v3 example into an OAS example object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toExamplesV3.d.ts","sourceRoot":"","sources":["../../../src/oas/example/toExamplesV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toExamplesV3.d.ts","sourceRoot":"","sources":["../../../src/oas/example/toExamplesV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,SAAS,CAAC,aAAa,CAAA;CACjC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAE/B,qBAAqB,KAAG,UAAU,GAAG,MAAM,CAAC,SAAS,CASvD,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,gDAAgD;IAChD,OAAO,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAA;IAC5C,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;IACzF,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAA;IAClB,mDAAmD;IACnD,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,4CAK1B,gBAAgB,KAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,SAiCtE,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAC,eAAe,CAAA;IAC5D,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GAAI,sBAGzB,eAAe,KAAG,UAAU,GAAG,MAAM,CAAC,SAAS,CAoBjD,CAAA"}
|
|
@@ -33,7 +33,13 @@ export const toExampleSimpleV3 = ({ example }) => {
|
|
|
33
33
|
*/
|
|
34
34
|
export const toExamplesV3 = ({ example, examples, exampleKey, context }) => {
|
|
35
35
|
if (example && examples) {
|
|
36
|
-
context.
|
|
36
|
+
context.logIssue({
|
|
37
|
+
key: 'example',
|
|
38
|
+
level: 'warning',
|
|
39
|
+
message: `Both example and examples are defined for ${exampleKey}`,
|
|
40
|
+
parent: examples,
|
|
41
|
+
type: 'EXAMPLE_AND_EXAMPLES_DEFINED'
|
|
42
|
+
});
|
|
37
43
|
}
|
|
38
44
|
if (example) {
|
|
39
45
|
return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OasExternalDocs } from './ExternalDocs.js';
|
|
2
2
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
4
4
|
type ToExternalDocsArgs = {
|
|
5
5
|
externalDocs: OpenAPIV3.ExternalDocumentationObject | undefined;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toExternalDocs: ({ externalDocs }: ToExternalDocsArgs) => OasExternalDocs | undefined;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toExternalDocs.d.ts","sourceRoot":"","sources":["../../../src/oas/externalDocs/toExternalDocs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toExternalDocs.d.ts","sourceRoot":"","sources":["../../../src/oas/externalDocs/toExternalDocs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,KAAK,kBAAkB,GAAG;IACxB,YAAY,EAAE,SAAS,CAAC,2BAA2B,GAAG,SAAS,CAAA;IAC/D,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,kBAE5B,kBAAkB,KAAG,eAAe,GAAG,SAazC,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
2
2
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
3
|
import { OasHeader } from './Header.js';
|
|
4
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
5
|
type ToHeadersV3Args = {
|
|
6
6
|
headers: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.HeaderObject> | undefined;
|
|
7
|
-
context:
|
|
7
|
+
context: ParseContextType;
|
|
8
8
|
};
|
|
9
9
|
export declare const toHeadersV3: ({ headers, context }: ToHeadersV3Args) => Record<string, OasHeader | OasRef<"header">> | undefined;
|
|
10
10
|
export {};
|
|
@@ -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,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,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,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAA;IACvF,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,sBAGzB,eAAe,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,SAanE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasInfo } from './Info.js';
|
|
4
4
|
type ToInfoV3Args = {
|
|
5
5
|
info: OpenAPIV3.InfoObject;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toInfoV3: ({ info, context }: ToInfoV3Args) => OasInfo;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toInfoV3.d.ts","sourceRoot":"","sources":["../../../src/oas/info/toInfoV3.ts"],"names":[],"mappings":"AAAA,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":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,UAAU,CAAA;IAC1B,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,mBAAmB,YAAY,KAAG,OAmB1D,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasInteger } from './Integer.js';
|
|
4
4
|
type ToIntegerArgs = {
|
|
5
5
|
value: OpenAPIV3.SchemaObject;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toInteger: ({ value, context }: ToIntegerArgs) => OasInteger;
|
|
9
9
|
type ToParsedIntegerArgs<Nullable extends boolean | undefined> = {
|
|
10
10
|
value: Omit<OpenAPIV3.SchemaObject, 'nullable' | 'example' | 'enums'>;
|
|
11
|
-
context:
|
|
11
|
+
context: ParseContextType;
|
|
12
12
|
nullable: Nullable;
|
|
13
13
|
example: Nullable extends true ? number | null | undefined : number | undefined;
|
|
14
14
|
enums: Nullable extends true ? (number | null)[] | undefined : number[] | undefined;
|
|
@@ -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,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAOzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,oBAAoB,aAAa,KAAG,UAiC7D,CAAA;AAED,KAAK,mBAAmB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC/D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAA;IACrE,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;CACpF,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,iEAMnE,mBAAmB,CAAC,QAAQ,CAAC,KAAG,UAAU,CAAC,QAAQ,CAsDrD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasLicense } from './License.js';
|
|
4
|
-
export declare const toLicenseV3: (license: OpenAPIV3.LicenseObject, context:
|
|
4
|
+
export declare const toLicenseV3: (license: OpenAPIV3.LicenseObject, context: ParseContextType) => OasLicense;
|
|
5
5
|
//# sourceMappingURL=toLicenseV3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toLicenseV3.d.ts","sourceRoot":"","sources":["../../../src/oas/license/toLicenseV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toLicenseV3.d.ts","sourceRoot":"","sources":["../../../src/oas/license/toLicenseV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,GACtB,SAAS,SAAS,CAAC,aAAa,EAChC,SAAS,gBAAgB,KACxB,UAeF,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasMediaType } from './MediaType.js';
|
|
4
4
|
/**
|
|
5
5
|
* Arguments for transforming an OpenAPI v3 media type item into an OAS media type.
|
|
@@ -10,7 +10,7 @@ type ToMediaTypeItemV3Args = {
|
|
|
10
10
|
/** The media type string (e.g., 'application/json', 'text/plain') */
|
|
11
11
|
mediaType: string;
|
|
12
12
|
/** The parsing context for tracing and processing */
|
|
13
|
-
context:
|
|
13
|
+
context: ParseContextType;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Transforms an OpenAPI v3 media type object into an internal OAS media type representation.
|
|
@@ -122,7 +122,7 @@ type ToMediaTypeItemsV3Args = {
|
|
|
122
122
|
/** Map of media type strings to OpenAPI v3 MediaType objects */
|
|
123
123
|
content: Record<string, OpenAPIV3.MediaTypeObject>;
|
|
124
124
|
/** The parsing context for tracing and processing */
|
|
125
|
-
context:
|
|
125
|
+
context: ParseContextType;
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
128
|
* Transforms multiple OpenAPI v3 media type objects into internal OAS representations.
|
|
@@ -215,7 +215,7 @@ type ToOptionalMediaTypeItemsV3Args = {
|
|
|
215
215
|
/** Optional map of media type strings to OpenAPI v3 MediaType objects */
|
|
216
216
|
content: Record<string, OpenAPIV3.MediaTypeObject> | undefined;
|
|
217
217
|
/** The parsing context for tracing and processing */
|
|
218
|
-
context:
|
|
218
|
+
context: ParseContextType;
|
|
219
219
|
};
|
|
220
220
|
/**
|
|
221
221
|
* Optionally transforms OpenAPI v3 media type objects when content is provided.
|
|
@@ -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,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAK7C;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B,oDAAoD;IACpD,aAAa,EAAE,SAAS,CAAC,eAAe,CAAA;IACxC,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,eAAO,MAAM,iBAAiB,GAAI,uCAI/B,qBAAqB,KAAG,YA0B1B,CAAA;AAED;;GAEG;AACH,KAAK,sBAAsB,GAAG;IAC5B,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,CAAA;IAClD,qDAAqD;IACrD,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,eAAO,MAAM,kBAAkB,GAAI,sBAGhC,sBAAsB,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAWtD,CAAA;AAED;;GAEG;AACH,KAAK,8BAA8B,GAAG;IACpC,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;IAC9D,qDAAqD;IACrD,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,eAAO,MAAM,0BAA0B,GAAI,sBAGxC,8BAA8B,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAMlE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasNumber } from './Number.js';
|
|
4
4
|
type ToNumberArgs = {
|
|
5
5
|
value: OpenAPIV3.SchemaObject;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toNumber: ({ context, value }: ToNumberArgs) => OasNumber;
|
|
9
9
|
export {};
|
|
@@ -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,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAMvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,oBAAoB,YAAY,KAAG,SAiC3D,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OasRef } from '../ref/Ref.js';
|
|
2
2
|
import type { OasSchema, ToJsonSchemaOptions } from '../schema/Schema.js';
|
|
3
|
-
import type { CustomValue } from '../../
|
|
3
|
+
import type { CustomValue } from '../../dsl/CustomValue.js';
|
|
4
4
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
5
5
|
/**
|
|
6
6
|
* Constructor fields for {@link OasObject}.
|
|
@@ -1 +1 @@
|
|
|
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,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
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GACzB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAC9C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,SAAS,CAAA;IACzC;;;;;;;;;;;;;;;;;OAiBG;gBACS,MAAM,GAAE,eAAe,CAAC,QAAQ,CAAM;IAiBlD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,KAAK,CAAC;IAQhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,eAAe,GAAG,SAAS;IAmBnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;IAkBvC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,SAAS;IAIpB,WAAW,IAAI,SAAS;IAIxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAAC,oBAAoB;CA8B3E"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import type { OasSchema } from '../schema/Schema.js';
|
|
4
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
5
|
type ToAdditionalPropertiesV3Args = {
|
|
6
6
|
additionalProperties: boolean | OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject | undefined;
|
|
7
|
-
context:
|
|
7
|
+
context: ParseContextType;
|
|
8
8
|
};
|
|
9
9
|
export declare const toAdditionalPropertiesV3: ({ additionalProperties, context }: ToAdditionalPropertiesV3Args) => OasSchema | OasRef<"schema"> | boolean | undefined;
|
|
10
10
|
export {};
|
|
@@ -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,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,KAAK,4BAA4B,GAAG;IAClC,oBAAoB,EAAE,OAAO,GAAG,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,GAAG,SAAS,CAAA;IAC9F,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,mCAGtC,4BAA4B,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,GAAG,SAU1E,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasObject } from './Object.js';
|
|
4
4
|
type ToObjectArgs = {
|
|
5
5
|
value: OpenAPIV3.SchemaObject;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toObject: ({ value, context }: ToObjectArgs) => OasObject;
|
|
9
9
|
export {};
|
|
@@ -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,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,oBAAoB,YAAY,KAAG,SAiC3D,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
import type { Method } from '../../types/Method.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
4
4
|
import { OasOperation } from './Operation.js';
|
|
5
5
|
import type { OasPathItem } from '../pathItem/PathItem.js';
|
|
6
6
|
type OperationInfo = {
|
|
@@ -11,12 +11,12 @@ type OperationInfo = {
|
|
|
11
11
|
type ToOperationV3Args = {
|
|
12
12
|
operation: OpenAPIV3.OperationObject;
|
|
13
13
|
operationInfo: OperationInfo;
|
|
14
|
-
context:
|
|
14
|
+
context: ParseContextType;
|
|
15
15
|
};
|
|
16
16
|
export declare const toOperationV3: ({ operation, operationInfo, context }: ToOperationV3Args) => OasOperation;
|
|
17
17
|
type ToOperationsV3Args = {
|
|
18
18
|
paths: OpenAPIV3.PathsObject;
|
|
19
|
-
context:
|
|
19
|
+
context: ParseContextType;
|
|
20
20
|
};
|
|
21
21
|
export declare const toOperationsV3: ({ paths, context }: ToOperationsV3Args) => OasOperation[];
|
|
22
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/toOperationsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toOperationsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/toOperationsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAInE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAA;CAClC,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,aAAa,EAAE,aAAa,CAAA;IAC5B,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAOD,eAAO,MAAM,aAAa,GAAI,uCAI3B,iBAAiB,KAAG,YAkDtB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC,WAAW,CAAA;IAC5B,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,oBAAoB,kBAAkB,KAAG,YAAY,EAsEnF,CAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
2
2
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
3
|
import { OasParameter } from './Parameter.js';
|
|
4
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
5
|
type ToParameterListV3Args = {
|
|
6
6
|
parameters: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[] | undefined;
|
|
7
|
-
context:
|
|
7
|
+
context: ParseContextType;
|
|
8
8
|
};
|
|
9
9
|
export declare const toParameterListV3: ({ parameters, context }: ToParameterListV3Args) => (OasParameter | OasRef<"parameter">)[] | undefined;
|
|
10
10
|
type ToParametersV3Args = {
|
|
11
11
|
parameters: Record<string, OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject>;
|
|
12
|
-
context:
|
|
12
|
+
context: ParseContextType;
|
|
13
13
|
};
|
|
14
14
|
export declare const toParametersV3: ({ parameters, context }: ToParametersV3Args) => Record<string, OasParameter | OasRef<"parameter">>;
|
|
15
15
|
type ToOptionalParametersV3Args = {
|
|
16
16
|
parameters: Record<string, OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject> | undefined;
|
|
17
|
-
context:
|
|
17
|
+
context: ParseContextType;
|
|
18
18
|
};
|
|
19
19
|
export declare const toOptionalParametersV3: ({ parameters, context }: ToOptionalParametersV3Args) => Record<string, OasParameter | OasRef<"parameter">> | undefined;
|
|
20
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toParameterV3.d.ts","sourceRoot":"","sources":["../../../src/oas/parameter/toParameterV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toParameterV3.d.ts","sourceRoot":"","sources":["../../../src/oas/parameter/toParameterV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,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|
import { OasPathItem } from './PathItem.js';
|
|
4
4
|
type ToPathItemV3Args = {
|
|
5
5
|
pathItem: OpenAPIV3.PathItemObject;
|
|
6
|
-
context:
|
|
6
|
+
context: ParseContextType;
|
|
7
7
|
};
|
|
8
8
|
export declare const toPathItemV3: ({ pathItem, context }: ToPathItemV3Args) => OasPathItem;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toPathItemV3.d.ts","sourceRoot":"","sources":["../../../src/oas/pathItem/toPathItemV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toPathItemV3.d.ts","sourceRoot":"","sources":["../../../src/oas/pathItem/toPathItemV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,SAAS,CAAC,cAAc,CAAA;IAClC,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,uBAAuB,gBAAgB,KAAG,WAgBtE,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from 'openapi-types';
|
|
2
2
|
import type { OasRefData } from './ref-types.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
4
4
|
import { OasRef } from './Ref.js';
|
|
5
5
|
type ToRefV31Args<T extends OasRefData['refType']> = {
|
|
6
6
|
ref: OpenAPIV3_1.ReferenceObject;
|
|
7
7
|
refType: T;
|
|
8
|
-
context:
|
|
8
|
+
context: ParseContextType;
|
|
9
9
|
};
|
|
10
10
|
export declare const toRefV31: <T extends OasRefData["refType"]>({ ref, refType, context }: ToRefV31Args<T>) => OasRef<T>;
|
|
11
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toRefV31.d.ts","sourceRoot":"","sources":["../../../src/oas/ref/toRefV31.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toRefV31.d.ts","sourceRoot":"","sources":["../../../src/oas/ref/toRefV31.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAGjC,KAAK,YAAY,CAAC,CAAC,SAAS,UAAU,CAAC,SAAS,CAAC,IAAI;IACnD,GAAG,EAAE,WAAW,CAAC,eAAe,CAAA;IAChC,OAAO,EAAE,CAAC,CAAA;IACV,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,UAAU,CAAC,SAAS,CAAC,EAAE,2BAIvD,YAAY,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,CAAC,CAgB5B,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ParseContextType } from '../../context/parseTypes.js';
|
|
3
3
|
import { OasRequestBody } from './RequestBody.js';
|
|
4
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
5
|
type ToRequestBodyV3Args = {
|
|
6
6
|
requestBody: OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject | undefined;
|
|
7
7
|
forceRef?: boolean;
|
|
8
|
-
context:
|
|
8
|
+
context: ParseContextType;
|
|
9
9
|
};
|
|
10
10
|
export declare const toRequestBodyV3: ({ requestBody, context }: ToRequestBodyV3Args) => OasRequestBody | OasRef<"requestBody"> | undefined;
|
|
11
11
|
type ToRequestBodiesV3Args = {
|
|
12
12
|
requestBodies: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.RequestBodyObject> | undefined;
|
|
13
|
-
context:
|
|
13
|
+
context: ParseContextType;
|
|
14
14
|
};
|
|
15
15
|
export declare const toRequestBodiesV3: ({ requestBodies, context }: ToRequestBodiesV3Args) => Record<string, OasRequestBody | OasRef<"requestBody">> | undefined;
|
|
16
16
|
export {};
|