@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.
Files changed (79) hide show
  1. package/esm/context/GenerateContext.d.ts +2 -2
  2. package/esm/context/GenerateContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.js +2 -2
  4. package/esm/context/ParseContext.d.ts +2 -2
  5. package/esm/context/ParseContext.d.ts.map +1 -1
  6. package/esm/context/ParseContext.js +2 -2
  7. package/esm/context/StackTrail.d.ts +1 -6
  8. package/esm/context/StackTrail.d.ts.map +1 -1
  9. package/esm/context/StackTrail.js +1 -23
  10. package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
  11. package/esm/dsl/model/ModelDriver.js +12 -16
  12. package/esm/helpers/tracer.d.ts +2 -2
  13. package/esm/helpers/tracer.d.ts.map +1 -1
  14. package/esm/helpers/tracer.js +2 -2
  15. package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
  16. package/esm/oas/components/toComponentsV3.js +4 -14
  17. package/esm/oas/example/toExamplesV3.d.ts +1 -2
  18. package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
  19. package/esm/oas/example/toExamplesV3.js +4 -8
  20. package/esm/oas/header/toHeadersV3.d.ts +1 -2
  21. package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
  22. package/esm/oas/header/toHeadersV3.js +2 -2
  23. package/esm/oas/parameter/toParameterV3.d.ts +2 -3
  24. package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
  25. package/esm/oas/parameter/toParameterV3.js +4 -4
  26. package/esm/oas/requestBody/toRequestBodiesV3.d.ts +1 -2
  27. package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  28. package/esm/oas/requestBody/toRequestBodiesV3.js +2 -6
  29. package/esm/oas/response/toResponseV3.d.ts +2 -3
  30. package/esm/oas/response/toResponseV3.d.ts.map +1 -1
  31. package/esm/oas/response/toResponseV3.js +4 -4
  32. package/esm/oas/schema/toSchemasV3.d.ts +2 -3
  33. package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
  34. package/esm/oas/schema/toSchemasV3.js +9 -4
  35. package/esm/oas/string/String.d.ts +2 -2
  36. package/esm/oas/string/String.d.ts.map +1 -1
  37. package/esm/oas/string/string-types.d.ts +1 -13
  38. package/esm/oas/string/string-types.d.ts.map +1 -1
  39. package/esm/oas/string/string-types.js +15 -32
  40. package/package.json +1 -1
  41. package/script/context/GenerateContext.d.ts +2 -2
  42. package/script/context/GenerateContext.d.ts.map +1 -1
  43. package/script/context/GenerateContext.js +2 -2
  44. package/script/context/ParseContext.d.ts +2 -2
  45. package/script/context/ParseContext.d.ts.map +1 -1
  46. package/script/context/ParseContext.js +2 -2
  47. package/script/context/StackTrail.d.ts +1 -6
  48. package/script/context/StackTrail.d.ts.map +1 -1
  49. package/script/context/StackTrail.js +1 -23
  50. package/script/dsl/model/ModelDriver.d.ts.map +1 -1
  51. package/script/dsl/model/ModelDriver.js +12 -16
  52. package/script/helpers/tracer.d.ts +2 -2
  53. package/script/helpers/tracer.d.ts.map +1 -1
  54. package/script/helpers/tracer.js +2 -2
  55. package/script/oas/components/toComponentsV3.d.ts.map +1 -1
  56. package/script/oas/components/toComponentsV3.js +4 -14
  57. package/script/oas/example/toExamplesV3.d.ts +1 -2
  58. package/script/oas/example/toExamplesV3.d.ts.map +1 -1
  59. package/script/oas/example/toExamplesV3.js +4 -8
  60. package/script/oas/header/toHeadersV3.d.ts +1 -2
  61. package/script/oas/header/toHeadersV3.d.ts.map +1 -1
  62. package/script/oas/header/toHeadersV3.js +2 -2
  63. package/script/oas/parameter/toParameterV3.d.ts +2 -3
  64. package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
  65. package/script/oas/parameter/toParameterV3.js +4 -4
  66. package/script/oas/requestBody/toRequestBodiesV3.d.ts +1 -2
  67. package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  68. package/script/oas/requestBody/toRequestBodiesV3.js +2 -6
  69. package/script/oas/response/toResponseV3.d.ts +2 -3
  70. package/script/oas/response/toResponseV3.d.ts.map +1 -1
  71. package/script/oas/response/toResponseV3.js +4 -4
  72. package/script/oas/schema/toSchemasV3.d.ts +2 -3
  73. package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
  74. package/script/oas/schema/toSchemasV3.js +9 -4
  75. package/script/oas/string/String.d.ts +2 -2
  76. package/script/oas/string/String.d.ts.map +1 -1
  77. package/script/oas/string/string-types.d.ts +1 -13
  78. package/script/oas/string/string-types.d.ts.map +1 -1
  79. 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 }, options) => {
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 }), options)];
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 }, options) => {
16
+ const toOptionalResponsesV3 = ({ responses, context }) => {
17
17
  if (!responses) {
18
18
  return undefined;
19
19
  }
20
- return (0, exports.toResponsesV3)({ responses, context }, options);
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, options?: TraceOptions) => Record<string, OasSchema | OasRef<"schema">>;
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, options?: TraceOptions) => Record<string, OasSchema | OasRef<"schema">> | undefined;
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;AAU3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC/D,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,CAAA;IAC3E,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO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,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,CAAA;IAC3E,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,WAAW,yBAGrB,eAAe,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAW/D,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAA;IACvF,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,mBAAmB,yBAG7B,uBAAuB,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,SAM3E,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAA;IAC1D,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,UAAU,wBAAyB,cAAc,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAuC3F,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,GAAG,SAAS,CAAA;IACtE,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,wBAG5B,sBAAsB,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAM1D,CAAA"}
@@ -13,17 +13,22 @@ const toString_js_1 = require("../string/toString.js");
13
13
  const toUnknown_js_1 = require("../unknown/toUnknown.js");
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 }, options) => {
16
+ const toSchemasV3 = ({ schemas, context }) => {
17
17
  return Object.fromEntries(Object.entries(schemas).map(([key, schema]) => {
18
- return [key, context.trace(key, () => (0, exports.toSchemaV3)({ schema, context }), options)];
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 }, options) => {
27
+ const toOptionalSchemasV3 = ({ schemas, context }) => {
23
28
  if (!schemas) {
24
29
  return undefined;
25
30
  }
26
- return (0, exports.toSchemasV3)({ schemas, context }, options);
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?: (string | null)[];
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: (string | null)[] | undefined;
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.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CA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AChC,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?: false;
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,CA+BjD,CAAA;AAEF,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,GACrB;IACE,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,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GACD;IACE,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,KAAK,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA"}
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.union([
22
- zod_openapi_1.z
23
- .object({
24
- type: zod_openapi_1.z.literal('string'),
25
- title: zod_openapi_1.z.string().optional(),
26
- description: zod_openapi_1.z.string().optional(),
27
- default: zod_openapi_1.z.string().optional(),
28
- maxLength: zod_openapi_1.z.number().optional(),
29
- minLength: zod_openapi_1.z.number().optional(),
30
- pattern: zod_openapi_1.z.string().optional(),
31
- enum: zod_openapi_1.z.array(zod_openapi_1.z.union([zod_openapi_1.z.string(), zod_openapi_1.z.null()])).optional(),
32
- format: zod_openapi_1.z.string().optional(),
33
- nullable: zod_openapi_1.z.literal(true),
34
- example: zod_openapi_1.z.string().optional().catch(undefined)
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();