@skmtc/core 0.0.597 → 0.0.599
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/GenerateContext.d.ts +2 -2
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +2 -2
- package/esm/context/ParseContext.d.ts +2 -2
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +2 -2
- package/esm/context/StackTrail.d.ts +1 -6
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/StackTrail.js +1 -23
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +12 -16
- package/esm/helpers/tracer.d.ts +2 -2
- package/esm/helpers/tracer.d.ts.map +1 -1
- package/esm/helpers/tracer.js +2 -2
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
- package/esm/oas/components/toComponentsV3.js +4 -14
- package/esm/oas/example/toExamplesV3.d.ts +1 -2
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +4 -8
- package/esm/oas/header/toHeadersV3.d.ts +1 -2
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.js +2 -2
- package/esm/oas/parameter/toParameterV3.d.ts +2 -3
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.js +4 -4
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts +1 -2
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/esm/oas/requestBody/toRequestBodiesV3.js +2 -6
- package/esm/oas/response/toResponseV3.d.ts +2 -3
- package/esm/oas/response/toResponseV3.d.ts.map +1 -1
- package/esm/oas/response/toResponseV3.js +4 -4
- package/esm/oas/schema/toSchemasV3.d.ts +2 -3
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/oas/schema/toSchemasV3.js +9 -4
- package/esm/oas/string/String.d.ts +2 -2
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/string-types.d.ts +1 -13
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/string-types.js +15 -32
- package/package.json +1 -1
- package/script/context/GenerateContext.d.ts +2 -2
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +2 -2
- package/script/context/ParseContext.d.ts +2 -2
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +2 -2
- package/script/context/StackTrail.d.ts +1 -6
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/StackTrail.js +1 -23
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +12 -16
- package/script/helpers/tracer.d.ts +2 -2
- package/script/helpers/tracer.d.ts.map +1 -1
- package/script/helpers/tracer.js +2 -2
- package/script/oas/components/toComponentsV3.d.ts.map +1 -1
- package/script/oas/components/toComponentsV3.js +4 -14
- package/script/oas/example/toExamplesV3.d.ts +1 -2
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +4 -8
- package/script/oas/header/toHeadersV3.d.ts +1 -2
- package/script/oas/header/toHeadersV3.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.js +2 -2
- package/script/oas/parameter/toParameterV3.d.ts +2 -3
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.js +4 -4
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +1 -2
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +2 -6
- package/script/oas/response/toResponseV3.d.ts +2 -3
- package/script/oas/response/toResponseV3.d.ts.map +1 -1
- package/script/oas/response/toResponseV3.js +4 -4
- package/script/oas/schema/toSchemasV3.d.ts +2 -3
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/script/oas/schema/toSchemasV3.js +9 -4
- package/script/oas/string/String.d.ts +2 -2
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/string-types.d.ts +1 -13
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/string-types.js +15 -32
|
@@ -7,17 +7,17 @@ const refFns_js_1 = require("../../helpers/refFns.js");
|
|
|
7
7
|
const toMediaTypeItemV3_js_1 = require("../mediaType/toMediaTypeItemV3.js");
|
|
8
8
|
const Response_js_1 = require("./Response.js");
|
|
9
9
|
const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toSpecificationExtensionsV3.js");
|
|
10
|
-
const toResponsesV3 = ({ responses, context }
|
|
10
|
+
const toResponsesV3 = ({ responses, context }) => {
|
|
11
11
|
return Object.fromEntries(Object.entries(responses).map(([key, value]) => {
|
|
12
|
-
return [key, context.trace(key, () => (0, exports.toResponseV3)({ response: value, context })
|
|
12
|
+
return [key, context.trace(key, () => (0, exports.toResponseV3)({ response: value, context }))];
|
|
13
13
|
}));
|
|
14
14
|
};
|
|
15
15
|
exports.toResponsesV3 = toResponsesV3;
|
|
16
|
-
const toOptionalResponsesV3 = ({ responses, context }
|
|
16
|
+
const toOptionalResponsesV3 = ({ responses, context }) => {
|
|
17
17
|
if (!responses) {
|
|
18
18
|
return undefined;
|
|
19
19
|
}
|
|
20
|
-
return (0, exports.toResponsesV3)({ responses, context }
|
|
20
|
+
return (0, exports.toResponsesV3)({ responses, context });
|
|
21
21
|
};
|
|
22
22
|
exports.toOptionalResponsesV3 = toOptionalResponsesV3;
|
|
23
23
|
const toResponseV3 = ({ response, context }) => {
|
|
@@ -2,17 +2,16 @@ import type { ParseContext } from '../../context/ParseContext.js';
|
|
|
2
2
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
3
|
import type { OasSchema } from './Schema.js';
|
|
4
4
|
import type { OasRef } from '../ref/Ref.js';
|
|
5
|
-
import type { TraceOptions } from '../../context/StackTrail.js';
|
|
6
5
|
type ToSchemasV3Args = {
|
|
7
6
|
schemas: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject>;
|
|
8
7
|
context: ParseContext;
|
|
9
8
|
};
|
|
10
|
-
export declare const toSchemasV3: ({ schemas, context }: ToSchemasV3Args
|
|
9
|
+
export declare const toSchemasV3: ({ schemas, context }: ToSchemasV3Args) => Record<string, OasSchema | OasRef<"schema">>;
|
|
11
10
|
type ToOptionalSchemasV3Args = {
|
|
12
11
|
schemas: Record<string, OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject> | undefined;
|
|
13
12
|
context: ParseContext;
|
|
14
13
|
};
|
|
15
|
-
export declare const toOptionalSchemasV3: ({ schemas, context }: ToOptionalSchemasV3Args
|
|
14
|
+
export declare const toOptionalSchemasV3: ({ schemas, context }: ToOptionalSchemasV3Args) => Record<string, OasSchema | OasRef<"schema">> | undefined;
|
|
16
15
|
type ToSchemaV3Args = {
|
|
17
16
|
schema: OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject;
|
|
18
17
|
context: ParseContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toSchemasV3.d.ts","sourceRoot":"","sources":["../../../src/oas/schema/toSchemasV3.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"toSchemasV3.d.ts","sourceRoot":"","sources":["../../../src/oas/schema/toSchemasV3.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM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");
|
|
14
14
|
const toUnion_js_1 = require("../union/toUnion.js");
|
|
15
15
|
const toIntersection_js_1 = require("../intersection/toIntersection.js");
|
|
16
|
-
const toSchemasV3 = ({ schemas, context }
|
|
16
|
+
const toSchemasV3 = ({ schemas, context }) => {
|
|
17
17
|
return Object.fromEntries(Object.entries(schemas).map(([key, schema]) => {
|
|
18
|
-
return [
|
|
18
|
+
return [
|
|
19
|
+
key,
|
|
20
|
+
context.trace(key, () => {
|
|
21
|
+
return (0, exports.toSchemaV3)({ schema, context });
|
|
22
|
+
})
|
|
23
|
+
];
|
|
19
24
|
}));
|
|
20
25
|
};
|
|
21
26
|
exports.toSchemasV3 = toSchemasV3;
|
|
22
|
-
const toOptionalSchemasV3 = ({ schemas, context }
|
|
27
|
+
const toOptionalSchemasV3 = ({ schemas, context }) => {
|
|
23
28
|
if (!schemas) {
|
|
24
29
|
return undefined;
|
|
25
30
|
}
|
|
26
|
-
return (0, exports.toSchemasV3)({ schemas, context }
|
|
31
|
+
return (0, exports.toSchemasV3)({ schemas, context });
|
|
27
32
|
};
|
|
28
33
|
exports.toOptionalSchemasV3 = toOptionalSchemasV3;
|
|
29
34
|
const toSchemaV3 = ({ schema, context }) => {
|
|
@@ -6,7 +6,7 @@ export type StringFields = {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
format?: string;
|
|
9
|
-
enums?:
|
|
9
|
+
enums?: string[];
|
|
10
10
|
maxLength?: number;
|
|
11
11
|
minLength?: number;
|
|
12
12
|
nullable?: boolean;
|
|
@@ -41,7 +41,7 @@ export declare class OasString {
|
|
|
41
41
|
/**
|
|
42
42
|
* An array of allowed values for the string.
|
|
43
43
|
*/
|
|
44
|
-
enums:
|
|
44
|
+
enums: string[] | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* The maximum length of the string.
|
|
47
47
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"String.d.ts","sourceRoot":"","sources":["../../../src/oas/string/String.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AAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B;;OAEG;IACH,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACpD,gCAAgC;IAChC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;gBAEf,MAAM,EAAE,YAAY;IAgBhC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,SAAS;IAIpB,WAAW,IAAI,SAAS;IAKxB,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC,oBAAoB;CAa5E"}
|
|
@@ -3,18 +3,6 @@ export declare const stringFormat: z.ZodEnum<["date-time", "time", "date", "dura
|
|
|
3
3
|
export declare const oasStringData: z.ZodType<OasStringData>;
|
|
4
4
|
export type StringFormat = 'date-time' | 'time' | 'date' | 'duration' | 'email' | 'hostname' | 'ipv4' | 'ipv6' | 'uuid' | 'uri' | 'regex' | 'password' | 'byte' | 'binary';
|
|
5
5
|
export type OasStringData = {
|
|
6
|
-
title?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
default?: string;
|
|
9
|
-
type: 'string';
|
|
10
|
-
maxLength?: number;
|
|
11
|
-
minLength?: number;
|
|
12
|
-
pattern?: string;
|
|
13
|
-
enum?: (string | null)[];
|
|
14
|
-
format?: string;
|
|
15
|
-
nullable: true;
|
|
16
|
-
example?: string;
|
|
17
|
-
} | {
|
|
18
6
|
title?: string;
|
|
19
7
|
description?: string;
|
|
20
8
|
default?: string;
|
|
@@ -24,7 +12,7 @@ export type OasStringData = {
|
|
|
24
12
|
pattern?: string;
|
|
25
13
|
enum?: string[];
|
|
26
14
|
format?: string;
|
|
27
|
-
nullable?:
|
|
15
|
+
nullable?: boolean;
|
|
28
16
|
example?: string;
|
|
29
17
|
};
|
|
30
18
|
//# sourceMappingURL=string-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-types.d.ts","sourceRoot":"","sources":["../../../src/oas/string/string-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AAErC,eAAO,MAAM,YAAY,iJAevB,CAAA;AAEF,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"string-types.d.ts","sourceRoot":"","sources":["../../../src/oas/string/string-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AAErC,eAAO,MAAM,YAAY,iJAevB,CAAA;AAEF,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAcnC,CAAA;AAEhB,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,UAAU,GACV,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,OAAO,GACP,UAAU,GACV,MAAM,GACN,QAAQ,CAAA;AAEZ,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,QAAQ,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -18,35 +18,18 @@ exports.stringFormat = zod_openapi_1.z.enum([
|
|
|
18
18
|
'byte',
|
|
19
19
|
'binary'
|
|
20
20
|
]);
|
|
21
|
-
exports.oasStringData = zod_openapi_1.z
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.passthrough(),
|
|
37
|
-
zod_openapi_1.z
|
|
38
|
-
.object({
|
|
39
|
-
type: zod_openapi_1.z.literal('string'),
|
|
40
|
-
title: zod_openapi_1.z.string().optional(),
|
|
41
|
-
description: zod_openapi_1.z.string().optional(),
|
|
42
|
-
default: zod_openapi_1.z.string().optional(),
|
|
43
|
-
maxLength: zod_openapi_1.z.number().optional(),
|
|
44
|
-
minLength: zod_openapi_1.z.number().optional(),
|
|
45
|
-
pattern: zod_openapi_1.z.string().optional(),
|
|
46
|
-
enum: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
47
|
-
format: zod_openapi_1.z.string().optional(),
|
|
48
|
-
nullable: zod_openapi_1.z.literal(false).optional(),
|
|
49
|
-
example: zod_openapi_1.z.string().optional().catch(undefined)
|
|
50
|
-
})
|
|
51
|
-
.passthrough()
|
|
52
|
-
]);
|
|
21
|
+
exports.oasStringData = zod_openapi_1.z
|
|
22
|
+
.object({
|
|
23
|
+
type: zod_openapi_1.z.literal('string'),
|
|
24
|
+
title: zod_openapi_1.z.string().optional(),
|
|
25
|
+
description: zod_openapi_1.z.string().optional(),
|
|
26
|
+
default: zod_openapi_1.z.string().optional(),
|
|
27
|
+
maxLength: zod_openapi_1.z.number().optional(),
|
|
28
|
+
minLength: zod_openapi_1.z.number().optional(),
|
|
29
|
+
pattern: zod_openapi_1.z.string().optional(),
|
|
30
|
+
enum: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
31
|
+
format: zod_openapi_1.z.string().optional(),
|
|
32
|
+
nullable: zod_openapi_1.z.boolean().optional(),
|
|
33
|
+
example: zod_openapi_1.z.string().optional().catch(undefined)
|
|
34
|
+
})
|
|
35
|
+
.passthrough();
|