@skmtc/core 0.0.314 → 0.0.317

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 (91) hide show
  1. package/esm/context/CoreContext.d.ts +0 -2
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/CoreContext.js +9 -16
  4. package/esm/context/GenerateContext.d.ts +3 -5
  5. package/esm/context/GenerateContext.d.ts.map +1 -1
  6. package/esm/context/GenerateContext.js +22 -32
  7. package/esm/context/ParseContext.d.ts +4 -5
  8. package/esm/context/ParseContext.d.ts.map +1 -1
  9. package/esm/context/ParseContext.js +15 -17
  10. package/esm/context/RenderContext.d.ts +10 -5
  11. package/esm/context/RenderContext.d.ts.map +1 -1
  12. package/esm/context/RenderContext.js +46 -30
  13. package/esm/helpers/tracer.d.ts +2 -6
  14. package/esm/helpers/tracer.d.ts.map +1 -1
  15. package/esm/helpers/tracer.js +3 -3
  16. package/esm/oas/array/toArray.d.ts.map +1 -1
  17. package/esm/oas/array/toArray.js +1 -2
  18. package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
  19. package/esm/oas/components/toComponentsV3.js +5 -6
  20. package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
  21. package/esm/oas/document/toDocumentFieldsV3.js +4 -5
  22. package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
  23. package/esm/oas/example/toExamplesV3.js +3 -4
  24. package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
  25. package/esm/oas/header/toHeadersV3.js +3 -4
  26. package/esm/oas/intersection/toIntersection.d.ts.map +1 -1
  27. package/esm/oas/intersection/toIntersection.js +2 -3
  28. package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
  29. package/esm/oas/mediaType/toMediaTypeItemV3.js +3 -4
  30. package/esm/oas/object/toObject.d.ts.map +1 -1
  31. package/esm/oas/object/toObject.js +2 -3
  32. package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
  33. package/esm/oas/operation/toOperationsV3.js +5 -6
  34. package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
  35. package/esm/oas/parameter/toParameterV3.js +7 -8
  36. package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
  37. package/esm/oas/pathItem/toPathItemV3.js +1 -2
  38. package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  39. package/esm/oas/requestBody/toRequestBodiesV3.js +2 -3
  40. package/esm/oas/response/toResponseV3.d.ts.map +1 -1
  41. package/esm/oas/response/toResponseV3.js +3 -4
  42. package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
  43. package/esm/oas/schema/toSchemasV3.js +3 -4
  44. package/esm/oas/union/toUnion.d.ts.map +1 -1
  45. package/esm/oas/union/toUnion.js +2 -3
  46. package/package.json +1 -1
  47. package/script/context/CoreContext.d.ts +0 -2
  48. package/script/context/CoreContext.d.ts.map +1 -1
  49. package/script/context/CoreContext.js +9 -16
  50. package/script/context/GenerateContext.d.ts +3 -5
  51. package/script/context/GenerateContext.d.ts.map +1 -1
  52. package/script/context/GenerateContext.js +22 -32
  53. package/script/context/ParseContext.d.ts +4 -5
  54. package/script/context/ParseContext.d.ts.map +1 -1
  55. package/script/context/ParseContext.js +15 -17
  56. package/script/context/RenderContext.d.ts +10 -5
  57. package/script/context/RenderContext.d.ts.map +1 -1
  58. package/script/context/RenderContext.js +46 -30
  59. package/script/helpers/tracer.d.ts +2 -6
  60. package/script/helpers/tracer.d.ts.map +1 -1
  61. package/script/helpers/tracer.js +3 -3
  62. package/script/oas/array/toArray.d.ts.map +1 -1
  63. package/script/oas/array/toArray.js +1 -2
  64. package/script/oas/components/toComponentsV3.d.ts.map +1 -1
  65. package/script/oas/components/toComponentsV3.js +5 -6
  66. package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
  67. package/script/oas/document/toDocumentFieldsV3.js +4 -5
  68. package/script/oas/example/toExamplesV3.d.ts.map +1 -1
  69. package/script/oas/example/toExamplesV3.js +3 -4
  70. package/script/oas/header/toHeadersV3.d.ts.map +1 -1
  71. package/script/oas/header/toHeadersV3.js +3 -4
  72. package/script/oas/intersection/toIntersection.d.ts.map +1 -1
  73. package/script/oas/intersection/toIntersection.js +2 -3
  74. package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
  75. package/script/oas/mediaType/toMediaTypeItemV3.js +3 -4
  76. package/script/oas/object/toObject.d.ts.map +1 -1
  77. package/script/oas/object/toObject.js +2 -3
  78. package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
  79. package/script/oas/operation/toOperationsV3.js +5 -6
  80. package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
  81. package/script/oas/parameter/toParameterV3.js +7 -8
  82. package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
  83. package/script/oas/pathItem/toPathItemV3.js +1 -2
  84. package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  85. package/script/oas/requestBody/toRequestBodiesV3.js +2 -3
  86. package/script/oas/response/toResponseV3.d.ts.map +1 -1
  87. package/script/oas/response/toResponseV3.js +3 -4
  88. package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
  89. package/script/oas/schema/toSchemasV3.js +3 -4
  90. package/script/oas/union/toUnion.d.ts.map +1 -1
  91. package/script/oas/union/toUnion.js +2 -3
@@ -4,7 +4,6 @@ exports.toIntersection = void 0;
4
4
  const Intersection_js_1 = require("./Intersection.js");
5
5
  const toDiscriminatorV3_js_1 = require("../discriminator/toDiscriminatorV3.js");
6
6
  const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
7
- const tracer_js_1 = require("../../helpers/tracer.js");
8
7
  const toIntersection = ({ value, members, context }) => {
9
8
  const { discriminator, title, description, nullable, ...skipped } = value;
10
9
  context.logSkippedFields(skipped);
@@ -12,8 +11,8 @@ const toIntersection = ({ value, members, context }) => {
12
11
  title,
13
12
  description,
14
13
  nullable,
15
- discriminator: (0, tracer_js_1.tracer)(context, 'discriminator', () => (0, toDiscriminatorV3_js_1.toDiscriminatorV3)({ discriminator, context })),
16
- members: members.map((schema, index) => (0, tracer_js_1.tracer)(context, `${index}`, () => (0, toSchemasV3_js_1.toSchemaV3)({ schema, context })))
14
+ discriminator: context.trace('discriminator', () => (0, toDiscriminatorV3_js_1.toDiscriminatorV3)({ discriminator, context })),
15
+ members: members.map((schema, index) => context.trace(`${index}`, () => (0, toSchemasV3_js_1.toSchemaV3)({ schema, context })))
17
16
  };
18
17
  return new Intersection_js_1.OasIntersection(fields);
19
18
  };
@@ -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,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
+ {"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;AAG7C,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,SAAS,CAAC,eAAe,CAAA;IACxC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,0CAI3B,qBAAqB,KAAG,YAqB1B,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,CAAA;IAClD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,yBAG5B,sBAAsB,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAatD,CAAA;AAED,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;IAC9D,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,0BAA0B,yBAGpC,8BAA8B,KAC7B,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAC5B,SAMH,CAAA"}
@@ -4,14 +4,13 @@ exports.toOptionalMediaTypeItemsV3 = exports.toMediaTypeItemsV3 = exports.toMedi
4
4
  const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
5
5
  const toExamplesV3_js_1 = require("../example/toExamplesV3.js");
6
6
  const MediaType_js_1 = require("./MediaType.js");
7
- const tracer_js_1 = require("../../helpers/tracer.js");
8
7
  const toMediaTypeItemV3 = ({ mediaTypeItem, mediaType, context }) => {
9
8
  const { schema, example, examples, ...skipped } = mediaTypeItem;
10
9
  context.logSkippedFields(skipped);
11
10
  const fields = {
12
11
  mediaType,
13
- schema: (0, tracer_js_1.tracer)(context, 'schema', () => (0, toSchemasV3_js_1.toOptionalSchemaV3)({ schema, context })),
14
- examples: (0, tracer_js_1.tracer)(context, 'examples', () => (0, toExamplesV3_js_1.toExamplesV3)({
12
+ schema: context.trace('schema', () => (0, toSchemasV3_js_1.toOptionalSchemaV3)({ schema, context })),
13
+ examples: context.trace('examples', () => (0, toExamplesV3_js_1.toExamplesV3)({
15
14
  example,
16
15
  examples,
17
16
  exampleKey: mediaType,
@@ -24,7 +23,7 @@ exports.toMediaTypeItemV3 = toMediaTypeItemV3;
24
23
  const toMediaTypeItemsV3 = ({ content, context }) => {
25
24
  return Object.fromEntries(Object.entries(content).map(([mediaType, value]) => [
26
25
  mediaType,
27
- (0, tracer_js_1.tracer)(context, mediaType, () => (0, exports.toMediaTypeItemV3)({
26
+ context.trace(mediaType, () => (0, exports.toMediaTypeItemV3)({
28
27
  mediaTypeItem: value,
29
28
  mediaType,
30
29
  context
@@ -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,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
+ {"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;AAI7D,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"}
@@ -4,7 +4,6 @@ exports.toObject = void 0;
4
4
  const Object_js_1 = require("./Object.js");
5
5
  const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
6
6
  const toAdditionalPropertiesV3_js_1 = require("./toAdditionalPropertiesV3.js");
7
- const tracer_js_1 = require("../../helpers/tracer.js");
8
7
  const toObject = ({ value, context }) => {
9
8
  const { type: _type, title, description, properties, required, additionalProperties, nullable, ...skipped } = value;
10
9
  context.logSkippedFields(skipped);
@@ -12,12 +11,12 @@ const toObject = ({ value, context }) => {
12
11
  title,
13
12
  description,
14
13
  nullable,
15
- properties: (0, tracer_js_1.tracer)(context, 'properties', () => (0, toSchemasV3_js_1.toOptionalSchemasV3)({
14
+ properties: context.trace('properties', () => (0, toSchemasV3_js_1.toOptionalSchemasV3)({
16
15
  schemas: properties,
17
16
  context
18
17
  })),
19
18
  required: required ?? [],
20
- additionalProperties: (0, tracer_js_1.tracer)(context, 'additionalProperties', () => (0, toAdditionalPropertiesV3_js_1.toAdditionalPropertiesV3)({ additionalProperties, context }))
19
+ additionalProperties: context.trace('additionalProperties', () => (0, toAdditionalPropertiesV3_js_1.toAdditionalPropertiesV3)({ additionalProperties, context }))
21
20
  };
22
21
  return new Object_js_1.OasObject(fields);
23
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"toOperationsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/toOperationsV3.ts"],"names":[],"mappings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,CAAA;IACZ,QAAQ,EAAE,WAAW,CAAA;CACtB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,aAAa,EAAE,aAAa,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,0CAIvB,iBAAiB,KAAG,YAqCtB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC,WAAW,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,uBAGxB,kBAAkB,KAAG,YAAY,EAqDnC,CAAA"}
@@ -6,7 +6,6 @@ const toResponseV3_js_1 = require("../response/toResponseV3.js");
6
6
  const toParameterV3_js_1 = require("../parameter/toParameterV3.js");
7
7
  const Operation_js_1 = require("./Operation.js");
8
8
  const toPathItemV3_js_1 = require("../pathItem/toPathItemV3.js");
9
- const tracer_js_1 = require("../../helpers/tracer.js");
10
9
  const toOperationV3 = ({ operation, operationInfo, context }) => {
11
10
  const { method, path, pathItem } = operationInfo;
12
11
  const { operationId, tags, summary, description, parameters, requestBody, responses, deprecated, ...skipped } = operation;
@@ -19,9 +18,9 @@ const toOperationV3 = ({ operation, operationInfo, context }) => {
19
18
  summary,
20
19
  tags,
21
20
  description,
22
- parameters: (0, tracer_js_1.tracer)(context, 'parameters', () => (0, toParameterV3_js_1.toParameterListV3)({ parameters, context })),
23
- requestBody: (0, tracer_js_1.tracer)(context, 'requestBody', () => (0, toRequestBodiesV3_js_1.toRequestBodyV3)({ requestBody, context })),
24
- responses: (0, tracer_js_1.tracer)(context, 'responses', () => (0, toResponseV3_js_1.toResponsesV3)({ responses, context })),
21
+ parameters: context.trace('parameters', () => (0, toParameterV3_js_1.toParameterListV3)({ parameters, context })),
22
+ requestBody: context.trace('requestBody', () => (0, toRequestBodiesV3_js_1.toRequestBodyV3)({ requestBody, context })),
23
+ responses: context.trace('responses', () => (0, toResponseV3_js_1.toResponsesV3)({ responses, context })),
25
24
  deprecated
26
25
  };
27
26
  return new Operation_js_1.OasOperation(fields);
@@ -29,7 +28,7 @@ const toOperationV3 = ({ operation, operationInfo, context }) => {
29
28
  exports.toOperationV3 = toOperationV3;
30
29
  const toOperationsV3 = ({ paths, context }) => {
31
30
  return Object.entries(paths).flatMap(([path, pathItem]) => {
32
- return (0, tracer_js_1.tracer)(context, path, () => {
31
+ return context.trace(path, () => {
33
32
  if (!pathItem) {
34
33
  return [];
35
34
  }
@@ -47,7 +46,7 @@ const toOperationsV3 = ({ paths, context }) => {
47
46
  };
48
47
  return Object.entries(methodObjects)
49
48
  .map(([method, operation]) => {
50
- return (0, tracer_js_1.tracer)(context, method, () => {
49
+ return context.trace(method, () => {
51
50
  if (!operation) {
52
51
  return;
53
52
  }
@@ -1 +1 @@
1
- {"version":3,"file":"toParameterV3.d.ts","sourceRoot":"","sources":["../../../src/oas/parameter/toParameterV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAQjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAK9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAI3C,KAAK,qBAAqB,GAAG;IAC3B,UAAU,EACN,CAAC,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,EAAE,GACzD,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,4BAG3B,qBAAqB,KACpB,CAAC,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,GACtC,SAUH,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,MAAM,CAChB,MAAM,EACN,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAA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A;AAED,eAAO,MAAM,cAAc,4BAGxB,kBAAkB,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CASxE,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,UAAU,EACN,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,GACrE,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,sBAAsB,4BAGhC,0BAA0B,KACzB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,GAClD,SAMH,CAAA"}
@@ -9,13 +9,12 @@ const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
9
9
  const toMediaTypeItemV3_js_1 = require("../mediaType/toMediaTypeItemV3.js");
10
10
  const Parameter_js_1 = require("./Parameter.js");
11
11
  const ts_pattern_1 = require("ts-pattern");
12
- const tracer_js_1 = require("../../helpers/tracer.js");
13
12
  const toParameterListV3 = ({ parameters, context }) => {
14
13
  if (!parameters) {
15
14
  return undefined;
16
15
  }
17
16
  return parameters.map((parameter, index) => {
18
- return (0, tracer_js_1.tracer)(context, `${index}`, () => toParameterV3({ parameter, context }));
17
+ return context.trace(`${index}`, () => toParameterV3({ parameter, context }));
19
18
  });
20
19
  };
21
20
  exports.toParameterListV3 = toParameterListV3;
@@ -23,7 +22,7 @@ const toParametersV3 = ({ parameters, context }) => {
23
22
  return Object.fromEntries(Object.entries(parameters).map(([key, value]) => {
24
23
  return [
25
24
  key,
26
- (0, tracer_js_1.tracer)(context, key, () => toParameterV3({ parameter: value, context }))
25
+ context.trace(key, () => toParameterV3({ parameter: value, context }))
27
26
  ];
28
27
  }));
29
28
  };
@@ -57,18 +56,18 @@ const toParameterV3 = ({ parameter, context }) => {
57
56
  description,
58
57
  required: defaultRequired,
59
58
  deprecated,
60
- style: (0, tracer_js_1.tracer)(context, 'style', () => toStyle({ style, location: parsedLocation })),
61
- explode: (0, tracer_js_1.tracer)(context, 'explode', () => toExplode({ explode, style })),
59
+ style: context.trace('style', () => toStyle({ style, location: parsedLocation })),
60
+ explode: context.trace('explode', () => toExplode({ explode, style })),
62
61
  allowEmptyValue,
63
62
  allowReserved,
64
- schema: (0, tracer_js_1.tracer)(context, 'schema', () => (0, toSchemasV3_js_1.toOptionalSchemaV3)({ schema, context })),
65
- examples: (0, tracer_js_1.tracer)(context, 'examples', () => (0, toExamplesV3_js_1.toExamplesV3)({
63
+ schema: context.trace('schema', () => (0, toSchemasV3_js_1.toOptionalSchemaV3)({ schema, context })),
64
+ examples: context.trace('examples', () => (0, toExamplesV3_js_1.toExamplesV3)({
66
65
  examples,
67
66
  example,
68
67
  exampleKey: `${name}-${parsedLocation}`,
69
68
  context
70
69
  })),
71
- content: (0, tracer_js_1.tracer)(context, 'content', () => (0, toMediaTypeItemV3_js_1.toOptionalMediaTypeItemsV3)({ content, context }))
70
+ content: context.trace('content', () => (0, toMediaTypeItemV3_js_1.toOptionalMediaTypeItemsV3)({ content, context }))
72
71
  };
73
72
  return new Parameter_js_1.OasParameter(fields);
74
73
  };
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,SAAS,CAAC,cAAc,CAAA;IAClC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,0BAGtB,gBAAgB,KAAG,WAcrB,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,SAAS,CAAC,cAAc,CAAA;IAClC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,0BAGtB,gBAAgB,KAAG,WAcrB,CAAA"}
@@ -3,14 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toPathItemV3 = void 0;
4
4
  const toParameterV3_js_1 = require("../parameter/toParameterV3.js");
5
5
  const PathItem_js_1 = require("./PathItem.js");
6
- const tracer_js_1 = require("../../helpers/tracer.js");
7
6
  const toPathItemV3 = ({ pathItem, context }) => {
8
7
  const { summary, description, parameters, ...skipped } = pathItem;
9
8
  context.logSkippedFields(skipped);
10
9
  const fields = {
11
10
  summary,
12
11
  description,
13
- parameters: (0, tracer_js_1.tracer)(context, 'parameters', () => (0, toParameterV3_js_1.toParameterListV3)({ parameters, context }))
12
+ parameters: context.trace('parameters', () => (0, toParameterV3_js_1.toParameterListV3)({ parameters, context }))
14
13
  };
15
14
  return new PathItem_js_1.OasPathItem(fields);
16
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"toRequestBodiesV3.d.ts","sourceRoot":"","sources":["../../../src/oas/requestBody/toRequestBodiesV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,mBAAmB,GAAG;IACzB,WAAW,EACP,SA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S,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,CAAC,GACvE,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,+BAG3B,qBAAqB,KACpB,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,GACtD,SAiBH,CAAA"}
@@ -5,7 +5,6 @@ const refFns_js_1 = require("../../helpers/refFns.js");
5
5
  const toRefV31_js_1 = require("../ref/toRefV31.js");
6
6
  const toMediaTypeItemV3_js_1 = require("../mediaType/toMediaTypeItemV3.js");
7
7
  const RequestBody_js_1 = require("./RequestBody.js");
8
- const tracer_js_1 = require("../../helpers/tracer.js");
9
8
  const toRequestBodyV3 = ({ requestBody, context }) => {
10
9
  if (!requestBody) {
11
10
  return undefined;
@@ -17,7 +16,7 @@ const toRequestBodyV3 = ({ requestBody, context }) => {
17
16
  context.logSkippedFields(skipped);
18
17
  const fields = {
19
18
  description,
20
- content: (0, tracer_js_1.tracer)(context, 'content', () => {
19
+ content: context.trace('content', () => {
21
20
  return (0, toMediaTypeItemV3_js_1.toMediaTypeItemsV3)({ content, context });
22
21
  }),
23
22
  required
@@ -33,7 +32,7 @@ const toRequestBodiesV3 = ({ requestBodies, context }) => {
33
32
  .map(([key, value]) => {
34
33
  return [
35
34
  key,
36
- (0, tracer_js_1.tracer)(context, key, () => (0, exports.toRequestBodyV3)({ requestBody: value, context }))
35
+ context.trace(key, () => (0, exports.toRequestBodyV3)({ requestBody: value, context }))
37
36
  ];
38
37
  })
39
38
  .filter(([, value]) => Boolean(value));
@@ -1 +1 @@
1
- {"version":3,"file":"toResponseV3.d.ts","sourceRoot":"","sources":["../../../src/oas/response/toResponseV3.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,EAAE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AAa,2BAGvB,iBAAiB,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CASrE,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAA;IAChD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,qBAAqB,2BAG/B,yBAAyB,KACxB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,GAChD,SAMH,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,cAAc,CAAA;IAC9D,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,0BAGtB,gBAAgB,KAAG,WAAW,GAAG,MAAM,CAAC,UAAU,CAkBpD,CAAA"}
@@ -6,12 +6,11 @@ const toHeadersV3_js_1 = require("../header/toHeadersV3.js");
6
6
  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
- const tracer_js_1 = require("../../helpers/tracer.js");
10
9
  const toResponsesV3 = ({ responses, context }) => {
11
10
  return Object.fromEntries(Object.entries(responses).map(([key, value]) => {
12
11
  return [
13
12
  key,
14
- (0, tracer_js_1.tracer)(context, key, () => (0, exports.toResponseV3)({ response: value, context }))
13
+ context.trace(key, () => (0, exports.toResponseV3)({ response: value, context }))
15
14
  ];
16
15
  }));
17
16
  };
@@ -31,8 +30,8 @@ const toResponseV3 = ({ response, context }) => {
31
30
  context.logSkippedFields(skipped);
32
31
  const fields = {
33
32
  description,
34
- headers: (0, tracer_js_1.tracer)(context, 'headers', () => (0, toHeadersV3_js_1.toHeadersV3)({ headers, context })),
35
- content: (0, tracer_js_1.tracer)(context, 'content', () => (0, toMediaTypeItemV3_js_1.toOptionalMediaTypeItemsV3)({ content, context }))
33
+ headers: context.trace('headers', () => (0, toHeadersV3_js_1.toHeadersV3)({ headers, context })),
34
+ content: context.trace('content', () => (0, toMediaTypeItemV3_js_1.toOptionalMediaTypeItemsV3)({ content, context }))
36
35
  };
37
36
  return new Response_js_1.OasResponse(fields);
38
37
  };
@@ -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;AAY3C,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,CAM/D,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EACH,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,GAClE,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,mBAAmB,yBAG7B,uBAAuB,KACtB,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,GAC5C,SAMH,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAA;IAC1D,OAAO,EA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C,QAAQ,CAAC,CAAC,GAC5C,SAMH,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,wBAGpB,cAAc,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CA6C9C,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,10 +13,9 @@ 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 tracer_js_1 = require("../../helpers/tracer.js");
17
16
  const toSchemasV3 = ({ schemas, context }) => {
18
17
  return Object.fromEntries(Object.entries(schemas).map(([key, schema]) => {
19
- return [key, (0, tracer_js_1.tracer)(context, key, () => (0, exports.toSchemaV3)({ schema, context }))];
18
+ return [key, context.trace(key, () => (0, exports.toSchemaV3)({ schema, context }))];
20
19
  }));
21
20
  };
22
21
  exports.toSchemasV3 = toSchemasV3;
@@ -48,13 +47,13 @@ const toSchemaV3 = ({ schema, context }) => {
48
47
  if (members.length === 1) {
49
48
  return (0, exports.toSchemaV3)({ schema: members[0], context });
50
49
  }
51
- return (0, tracer_js_1.tracer)(context, 'anyOf', () => (0, toUnion_js_1.toUnion)({ value, members, context }));
50
+ return context.trace('anyOf', () => (0, toUnion_js_1.toUnion)({ value, members, context }));
52
51
  })
53
52
  .with({ allOf: ts_pattern_1.P.array() }, ({ allOf: members, ...value }) => {
54
53
  if (members.length === 1) {
55
54
  return (0, exports.toSchemaV3)({ schema: members[0], context });
56
55
  }
57
- return (0, tracer_js_1.tracer)(context, 'allOf', () => (0, toIntersection_js_1.toIntersection)({ value, members, context }));
56
+ return context.trace('allOf', () => (0, toIntersection_js_1.toIntersection)({ value, members, context }));
58
57
  })
59
58
  .with({ type: 'object' }, value => (0, toObject_js_1.toObject)({ value, context }))
60
59
  .with({ type: 'array' }, value => (0, toArray_js_1.toArray)({ value, context }))
@@ -1 +1 @@
1
- {"version":3,"file":"toUnion.d.ts","sourceRoot":"","sources":["../../../src/oas/union/toUnion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAoB,QAAQ,EAAE,MAAM,YAAY,CAAA;AAKvD,KAAK,WAAW,GAAG;IACjB,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,OAAO,gCAAiC,WAAW,KAAG,QAkBlE,CAAA"}
1
+ {"version":3,"file":"toUnion.d.ts","sourceRoot":"","sources":["../../../src/oas/union/toUnion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAoB,QAAQ,EAAE,MAAM,YAAY,CAAA;AAIvD,KAAK,WAAW,GAAG;IACjB,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,OAAO,gCAAiC,WAAW,KAAG,QAkBlE,CAAA"}
@@ -4,7 +4,6 @@ exports.toUnion = void 0;
4
4
  const Union_js_1 = require("./Union.js");
5
5
  const toDiscriminatorV3_js_1 = require("../discriminator/toDiscriminatorV3.js");
6
6
  const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
7
- const tracer_js_1 = require("../../helpers/tracer.js");
8
7
  const toUnion = ({ value, members, context }) => {
9
8
  const { discriminator, title, description, nullable, ...skipped } = value;
10
9
  context.logSkippedFields(skipped);
@@ -12,8 +11,8 @@ const toUnion = ({ value, members, context }) => {
12
11
  title,
13
12
  description,
14
13
  nullable,
15
- discriminator: (0, tracer_js_1.tracer)(context, 'discriminator', () => (0, toDiscriminatorV3_js_1.toDiscriminatorV3)({ discriminator, context })),
16
- members: members.map((schema, index) => (0, tracer_js_1.tracer)(context, `${index}`, () => (0, toSchemasV3_js_1.toSchemaV3)({ schema, context })))
14
+ discriminator: context.trace('discriminator', () => (0, toDiscriminatorV3_js_1.toDiscriminatorV3)({ discriminator, context })),
15
+ members: members.map((schema, index) => context.trace(`${index}`, () => (0, toSchemasV3_js_1.toSchemaV3)({ schema, context })))
17
16
  };
18
17
  return new Union_js_1.OasUnion(fields);
19
18
  };