@skmtc/core 0.0.443 → 0.0.444

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 (83) hide show
  1. package/esm/oas/array/toArray.js +1 -1
  2. package/esm/oas/boolean/toBoolean.js +1 -1
  3. package/esm/oas/components/toComponentsV3.js +1 -1
  4. package/esm/oas/contact/toContactV3.d.ts.map +1 -1
  5. package/esm/oas/contact/toContactV3.js +1 -2
  6. package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
  7. package/esm/oas/document/toDocumentFieldsV3.js +1 -2
  8. package/esm/oas/example/toExamplesV3.js +1 -1
  9. package/esm/oas/header/toHeadersV3.js +1 -1
  10. package/esm/oas/info/toInfoV3.d.ts.map +1 -1
  11. package/esm/oas/info/toInfoV3.js +1 -2
  12. package/esm/oas/integer/toInteger.js +1 -1
  13. package/esm/oas/intersection/toIntersection.js +1 -1
  14. package/esm/oas/license/toLicenseV3.d.ts.map +1 -1
  15. package/esm/oas/license/toLicenseV3.js +1 -2
  16. package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
  17. package/esm/oas/mediaType/toMediaTypeItemV3.js +1 -2
  18. package/esm/oas/number/toNumber.d.ts.map +1 -1
  19. package/esm/oas/number/toNumber.js +1 -2
  20. package/esm/oas/object/toObject.d.ts.map +1 -1
  21. package/esm/oas/object/toObject.js +4 -2
  22. package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
  23. package/esm/oas/operation/toOperationsV3.js +5 -1
  24. package/esm/oas/parameter/toParameterV3.js +1 -2
  25. package/esm/oas/pathItem/toPathItemV3.js +1 -1
  26. package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  27. package/esm/oas/requestBody/toRequestBodiesV3.js +1 -2
  28. package/esm/oas/response/toResponseV3.d.ts.map +1 -1
  29. package/esm/oas/response/toResponseV3.js +1 -2
  30. package/esm/oas/schema/toSchemasV3.js +3 -3
  31. package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -2
  32. package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
  33. package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.js +1 -4
  34. package/esm/oas/string/toString.d.ts.map +1 -1
  35. package/esm/oas/string/toString.js +4 -2
  36. package/esm/oas/tag/toTagsV3.d.ts.map +1 -1
  37. package/esm/oas/tag/toTagsV3.js +1 -2
  38. package/esm/oas/union/toUnion.d.ts.map +1 -1
  39. package/esm/oas/union/toUnion.js +1 -2
  40. package/esm/oas/unknown/toUnknown.d.ts.map +1 -1
  41. package/esm/oas/unknown/toUnknown.js +1 -2
  42. package/package.json +1 -1
  43. package/script/oas/array/toArray.js +1 -1
  44. package/script/oas/boolean/toBoolean.js +1 -1
  45. package/script/oas/components/toComponentsV3.js +1 -1
  46. package/script/oas/contact/toContactV3.d.ts.map +1 -1
  47. package/script/oas/contact/toContactV3.js +1 -2
  48. package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
  49. package/script/oas/document/toDocumentFieldsV3.js +1 -2
  50. package/script/oas/example/toExamplesV3.js +1 -1
  51. package/script/oas/header/toHeadersV3.js +1 -1
  52. package/script/oas/info/toInfoV3.d.ts.map +1 -1
  53. package/script/oas/info/toInfoV3.js +1 -2
  54. package/script/oas/integer/toInteger.js +1 -1
  55. package/script/oas/intersection/toIntersection.js +1 -1
  56. package/script/oas/license/toLicenseV3.d.ts.map +1 -1
  57. package/script/oas/license/toLicenseV3.js +1 -2
  58. package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
  59. package/script/oas/mediaType/toMediaTypeItemV3.js +1 -2
  60. package/script/oas/number/toNumber.d.ts.map +1 -1
  61. package/script/oas/number/toNumber.js +1 -2
  62. package/script/oas/object/toObject.d.ts.map +1 -1
  63. package/script/oas/object/toObject.js +4 -2
  64. package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
  65. package/script/oas/operation/toOperationsV3.js +5 -1
  66. package/script/oas/parameter/toParameterV3.js +1 -2
  67. package/script/oas/pathItem/toPathItemV3.js +1 -1
  68. package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
  69. package/script/oas/requestBody/toRequestBodiesV3.js +1 -2
  70. package/script/oas/response/toResponseV3.d.ts.map +1 -1
  71. package/script/oas/response/toResponseV3.js +1 -2
  72. package/script/oas/schema/toSchemasV3.js +3 -3
  73. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -2
  74. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
  75. package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +1 -4
  76. package/script/oas/string/toString.d.ts.map +1 -1
  77. package/script/oas/string/toString.js +4 -2
  78. package/script/oas/tag/toTagsV3.d.ts.map +1 -1
  79. package/script/oas/tag/toTagsV3.js +1 -2
  80. package/script/oas/union/toUnion.d.ts.map +1 -1
  81. package/script/oas/union/toUnion.js +1 -2
  82. package/script/oas/unknown/toUnknown.d.ts.map +1 -1
  83. package/script/oas/unknown/toUnknown.js +1 -2
@@ -3,7 +3,7 @@ import { toSchemaV3 } from '../schema/toSchemasV3.js';
3
3
  import { toSpecificationExtensionsV3 } from '../specificationExtensions/toSpecificationExtensionsV3.js';
4
4
  export const toArray = ({ value, context }) => {
5
5
  const { type: _type, items, title, description, nullable, uniqueItems, example, ...skipped } = value;
6
- const extensionFields = toSpecificationExtensionsV3({ skipped, context, type: 'array' });
6
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
7
7
  if (uniqueItems === true) {
8
8
  throw new Error('uniqueItems is not supported');
9
9
  }
@@ -2,7 +2,7 @@ import { OasBoolean } from './Boolean.js';
2
2
  import { toSpecificationExtensionsV3 } from '../specificationExtensions/toSpecificationExtensionsV3.js';
3
3
  export const toBoolean = ({ value, context }) => {
4
4
  const { type: _type, title, description, nullable, example, ...skipped } = value;
5
- const extensionFields = toSpecificationExtensionsV3({ skipped, context, type: 'boolean' });
5
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
6
6
  return new OasBoolean({
7
7
  nullable,
8
8
  title,
@@ -11,7 +11,7 @@ export const toComponentsV3 = ({ components, context }) => {
11
11
  return undefined;
12
12
  }
13
13
  const { schemas, responses, parameters, examples, requestBodies, headers, ...skipped } = components;
14
- const extensionFields = toSpecificationExtensionsV3({ skipped, context, type: 'components' });
14
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
15
15
  const fields = {
16
16
  schemas: context.trace('schemas', () => toOptionalSchemasV3({ schemas, context })),
17
17
  responses: context.trace('responses', () => toOptionalResponsesV3({ responses, context })),
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAeF,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAcF,CAAA"}
@@ -4,8 +4,7 @@ export const toContactV3 = (contact, context) => {
4
4
  const { name, url, email, ...skipped } = contact;
5
5
  const extensionFields = toSpecificationExtensionsV3({
6
6
  skipped,
7
- context,
8
- type: 'contact'
7
+ context
9
8
  });
10
9
  return new OasContact({
11
10
  name,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,KAAK,gBAAgB,GAAG;IACtB,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,gCAG5B,gBAAgB,KAAG,cAmBrB,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,KAAK,gBAAgB,GAAG;IACtB,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,gCAG5B,gBAAgB,KAAG,cAkBrB,CAAA"}
@@ -7,8 +7,7 @@ export const toDocumentFieldsV3 = ({ documentObject, context }) => {
7
7
  const { openapi, info, paths, components, tags, ...skipped } = documentObject;
8
8
  const extensionFields = toSpecificationExtensionsV3({
9
9
  skipped,
10
- context,
11
- type: 'document'
10
+ context
12
11
  });
13
12
  const fields = {
14
13
  openapi,
@@ -33,7 +33,7 @@ export const toExampleV3 = ({ example, context }) => {
33
33
  return toRefV31({ ref: example, refType: 'example', context });
34
34
  }
35
35
  const { summary, description, value, ...skipped } = example;
36
- const extensionFields = toSpecificationExtensionsV3({ skipped, context, type: 'example' });
36
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
37
37
  return new OasExample({
38
38
  summary,
39
39
  description,
@@ -18,7 +18,7 @@ const toHeaderV3 = ({ header, context }) => {
18
18
  return toRefV31({ ref: header, refType: 'header', context });
19
19
  }
20
20
  const { description, required, deprecated, schema, example, examples, content, ...skipped } = header;
21
- const extensionFields = toSpecificationExtensionsV3({ skipped, context, type: 'header' });
21
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
22
22
  const fields = {
23
23
  description,
24
24
  required,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,UAAU,CAAA;IAC1B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,OAkB1D,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,UAAU,CAAA;IAC1B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,OAiB1D,CAAA"}
@@ -6,8 +6,7 @@ export const toInfoV3 = ({ info, context }) => {
6
6
  const { title, description, termsOfService, contact, license, version, ...skipped } = info;
7
7
  const extensionFields = toSpecificationExtensionsV3({
8
8
  skipped,
9
- context,
10
- type: 'info'
9
+ context
11
10
  });
12
11
  return new OasInfo({
13
12
  title,
@@ -3,7 +3,7 @@ import { toSpecificationExtensionsV3 } from '../specificationExtensions/toSpecif
3
3
  import { oasIntegerData } from './integer-types.js';
4
4
  export const toInteger = ({ value, context }) => {
5
5
  const { type: _type, title, description, nullable, format, enum: enums, example, ...skipped } = oasIntegerData.parse(value);
6
- const extensionFields = toSpecificationExtensionsV3({ skipped, context, type: 'integer' });
6
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
7
7
  return new OasInteger({
8
8
  title,
9
9
  description,
@@ -4,7 +4,7 @@ import { toSchemaV3 } from '../schema/toSchemasV3.js';
4
4
  import { toSpecificationExtensionsV3 } from '../specificationExtensions/toSpecificationExtensionsV3.js';
5
5
  export const toIntersection = ({ value, members, context }) => {
6
6
  const { discriminator, title, description, nullable, ...skipped } = value;
7
- const extensionFields = toSpecificationExtensionsV3({ skipped, context, type: 'intersection' });
7
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
8
8
  return new OasIntersection({
9
9
  title,
10
10
  description,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAcF,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAaF,CAAA"}
@@ -4,8 +4,7 @@ export const toLicenseV3 = (license, context) => {
4
4
  const { name, url, ...skipped } = license;
5
5
  const extensionFields = toSpecificationExtensionsV3({
6
6
  skipped,
7
- context,
8
- type: 'license'
7
+ context
9
8
  });
10
9
  return new OasLicense({
11
10
  name,
@@ -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,YAwB1B,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,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAMlE,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;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,YAuB1B,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,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAMlE,CAAA"}
@@ -6,8 +6,7 @@ export const toMediaTypeItemV3 = ({ mediaTypeItem, mediaType, context }) => {
6
6
  const { schema, example, examples, ...skipped } = mediaTypeItem;
7
7
  const extensionFields = toSpecificationExtensionsV3({
8
8
  skipped,
9
- context,
10
- type: 'media-type'
9
+ context
11
10
  });
12
11
  const fields = {
13
12
  mediaType,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SAgB3D,CAAA"}
1
+ {"version":3,"file":"toNumber.d.ts","sourceRoot":"","sources":["../../../src/oas/number/toNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SAe3D,CAAA"}
@@ -4,8 +4,7 @@ export const toNumber = ({ value, context }) => {
4
4
  const { type: _type, title, description, nullable, example, ...skipped } = value;
5
5
  const extensionFields = toSpecificationExtensionsV3({
6
6
  skipped,
7
- context,
8
- type: 'number'
7
+ context
9
8
  });
10
9
  return new OasNumber({
11
10
  title,
@@ -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,SAsC3D,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;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,SAyC3D,CAAA"}
@@ -6,9 +6,11 @@ export const toObject = ({ value, context }) => {
6
6
  const { type: _type, title, description, properties, required, additionalProperties, nullable, example, ...skipped } = value;
7
7
  const extensionFields = toSpecificationExtensionsV3({
8
8
  skipped,
9
- context,
10
- type: 'object'
9
+ context
11
10
  });
11
+ if (extensionFields && Object.keys(extensionFields).length > 0) {
12
+ context.registerExtension({ extensionFields, type: 'model' });
13
+ }
12
14
  const fields = {
13
15
  title,
14
16
  description,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,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;AAOD,eAAO,MAAM,aAAa,0CAIvB,iBAAiB,KAAG,YA6BtB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC,WAAW,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,uBAAwB,kBAAkB,KAAG,YAAY,EAsDnF,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,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;AAOD,eAAO,MAAM,aAAa,0CAIvB,iBAAiB,KAAG,YAmCtB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC,WAAW,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,uBAAwB,kBAAkB,KAAG,YAAY,EAsDnF,CAAA"}
@@ -8,6 +8,10 @@ import { toSpecificationExtensionsV3 } from '../specificationExtensions/toSpecif
8
8
  export const toOperationV3 = ({ operation, operationInfo, context }) => {
9
9
  const { method, path, pathItem } = operationInfo;
10
10
  const { operationId, tags, summary, description, parameters, requestBody, responses, deprecated, ...skipped } = operation;
11
+ const extensionFields = toSpecificationExtensionsV3({ skipped, context });
12
+ if (extensionFields && Object.keys(extensionFields).length > 0) {
13
+ context.registerExtension({ extensionFields, type: 'operation' });
14
+ }
11
15
  return new OasOperation({
12
16
  pathItem,
13
17
  path,
@@ -20,7 +24,7 @@ export const toOperationV3 = ({ operation, operationInfo, context }) => {
20
24
  requestBody: context.trace('requestBody', () => toRequestBodyV3({ requestBody, context })),
21
25
  responses: context.trace('responses', () => toResponsesV3({ responses, context })),
22
26
  deprecated,
23
- extensionFields: toSpecificationExtensionsV3({ skipped, context, type: 'operation' })
27
+ extensionFields
24
28
  });
25
29
  };
26
30
  export const toOperationsV3 = ({ paths, context }) => {
@@ -33,8 +33,7 @@ const toParameterV3 = ({ parameter, context }) => {
33
33
  const { name, in: location, description, required, deprecated, allowEmptyValue, allowReserved, schema, example, examples, content, style, explode, ...skipped } = parameter;
34
34
  const extensionFields = toSpecificationExtensionsV3({
35
35
  skipped,
36
- context,
37
- type: 'parameter'
36
+ context
38
37
  });
39
38
  const parsedLocation = oasParameterLocation.parse(location);
40
39
  if (parsedLocation === 'path' && !required) {
@@ -7,6 +7,6 @@ export const toPathItemV3 = ({ pathItem, context }) => {
7
7
  summary,
8
8
  description,
9
9
  parameters: context.trace('parameters', () => toParameterListV3({ parameters, context })),
10
- extensionFields: toSpecificationExtensionsV3({ skipped, context, type: 'pathItem' })
10
+ extensionFields: toSpecificationExtensionsV3({ skipped, context })
11
11
  });
12
12
  };
@@ -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,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,GAAG,SAAS,CAAA;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,eAAe,6BAGzB,mBAAmB,KAAG,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,SA2BjE,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAA;IAClG,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,+BAG3B,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,SAYnF,CAAA"}
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,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,GAAG,SAAS,CAAA;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,eAAe,6BAGzB,mBAAmB,KAAG,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,SA0BjE,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAA;IAClG,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,+BAG3B,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,SAYnF,CAAA"}
@@ -13,8 +13,7 @@ export const toRequestBodyV3 = ({ requestBody, context }) => {
13
13
  const { description, content, required, ...skipped } = requestBody;
14
14
  const extensionFields = toSpecificationExtensionsV3({
15
15
  skipped,
16
- context,
17
- type: 'requestBody'
16
+ context
18
17
  });
19
18
  const fields = {
20
19
  description,
@@ -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,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,2BAGvB,iBAAiB,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAMrE,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,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,SAMjF,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,CAqBpD,CAAA"}
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,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,2BAGvB,iBAAiB,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAMrE,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,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,SAMjF,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,CAoBpD,CAAA"}
@@ -22,8 +22,7 @@ export const toResponseV3 = ({ response, context }) => {
22
22
  const { description, headers, content, ...skipped } = response;
23
23
  const extensionFields = toSpecificationExtensionsV3({
24
24
  skipped,
25
- context,
26
- type: 'response'
25
+ context
27
26
  });
28
27
  const fields = {
29
28
  description,
@@ -26,9 +26,9 @@ export const toSchemaV3 = ({ schema, context }) => {
26
26
  return toRefV31({ ref: schema, refType: 'schema', context });
27
27
  }
28
28
  // Workaround for dodgy Reapit schema
29
- if (schema.type !== 'array' && 'optional' in schema && schema.optional === true) {
30
- schema.nullable = true;
31
- }
29
+ // if (schema.type !== 'array' && 'optional' in schema && schema.optional === true) {
30
+ // schema.nullable = true
31
+ // }
32
32
  return match(schema)
33
33
  .with({ oneOf: P.array() }, ({ oneOf: members, ...value }) => {
34
34
  // if (members.length === 1) {
@@ -1,9 +1,8 @@
1
1
  import type { ParseContext } from '../../context/ParseContext.js';
2
2
  type ToSpecificationExtensionsV3Args = {
3
- type: string;
4
3
  skipped: Record<string, unknown>;
5
4
  context: ParseContext;
6
5
  };
7
- export declare const toSpecificationExtensionsV3: ({ type, skipped: s, context }: ToSpecificationExtensionsV3Args) => Record<string, unknown> | undefined;
6
+ export declare const toSpecificationExtensionsV3: ({ skipped: s, context }: ToSpecificationExtensionsV3Args) => Record<string, unknown> | undefined;
8
7
  export {};
9
8
  //# sourceMappingURL=toSpecificationExtensionsV3.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toSpecificationExtensionsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/specificationExtensions/toSpecificationExtensionsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,KAAK,+BAA+B,GAAG;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,2BAA2B,kCAIrC,+BAA+B,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAgC9D,CAAA"}
1
+ {"version":3,"file":"toSpecificationExtensionsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/specificationExtensions/toSpecificationExtensionsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,KAAK,+BAA+B,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,2BAA2B,4BAGrC,+BAA+B,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SA4B9D,CAAA"}
@@ -1,4 +1,4 @@
1
- export const toSpecificationExtensionsV3 = ({ type, skipped: s, context }) => {
1
+ export const toSpecificationExtensionsV3 = ({ skipped: s, context }) => {
2
2
  const { skipped, extensionFields } = Object.entries(s).reduce((acc, [key, value]) => {
3
3
  if (!key.startsWith('x-')) {
4
4
  return acc;
@@ -14,8 +14,5 @@ export const toSpecificationExtensionsV3 = ({ type, skipped: s, context }) => {
14
14
  };
15
15
  }, { skipped: s, extensionFields: undefined });
16
16
  context.logSkippedFields(skipped);
17
- if (extensionFields && Object.keys(extensionFields).length > 0) {
18
- context.registerExtension({ extensionFields, type });
19
- }
20
17
  return extensionFields;
21
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../../src/oas/string/toString.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,EAAE,MAAM,aAAa,CAAA;AAIvC,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":"toString.d.ts","sourceRoot":"","sources":["../../../src/oas/string/toString.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,EAAE,MAAM,aAAa,CAAA;AAIvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SAkC3D,CAAA"}
@@ -5,9 +5,11 @@ export const toString = ({ value, context }) => {
5
5
  const { type: _type, title, description, enum: enums, nullable, example, format, maxLength, minLength, ...skipped } = oasStringData.parse(value);
6
6
  const extensionFields = toSpecificationExtensionsV3({
7
7
  skipped,
8
- context,
9
- type: 'string'
8
+ context
10
9
  });
10
+ if (extensionFields && Object.keys(extensionFields).length > 0) {
11
+ context.registerExtension({ extensionFields, type: 'string' });
12
+ }
11
13
  return new OasString({
12
14
  title,
13
15
  description,
@@ -1 +1 @@
1
- {"version":3,"file":"toTagsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/tag/toTagsV3.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,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,SAAS,EAAE,GAAG,SAAS,CAAA;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,MAAM,EAAE,GAAG,SAMrE,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,SAAS,CAAC,SAAS,CAAA;IACxB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,OAAO,qBAAsB,WAAW,KAAG,MAgBvD,CAAA"}
1
+ {"version":3,"file":"toTagsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/tag/toTagsV3.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,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,SAAS,EAAE,GAAG,SAAS,CAAA;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,MAAM,EAAE,GAAG,SAMrE,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,SAAS,CAAC,SAAS,CAAA;IACxB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,OAAO,qBAAsB,WAAW,KAAG,MAevD,CAAA"}
@@ -10,8 +10,7 @@ export const toTagV3 = ({ tag, context }) => {
10
10
  const { name, description, ...skipped } = tag;
11
11
  const extensionFields = toSpecificationExtensionsV3({
12
12
  skipped,
13
- context,
14
- type: 'tag'
13
+ context
15
14
  });
16
15
  const fields = {
17
16
  name,
@@ -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,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAKrC,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,QAsBlE,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,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAKrC,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,QAqBlE,CAAA"}
@@ -6,8 +6,7 @@ export const toUnion = ({ value, members, context }) => {
6
6
  const { discriminator, title, description, nullable, example, ...skipped } = value;
7
7
  const extensionFields = toSpecificationExtensionsV3({
8
8
  skipped,
9
- context,
10
- type: 'union'
9
+ context
11
10
  });
12
11
  return new OasUnion({
13
12
  title,
@@ -1 +1 @@
1
- {"version":3,"file":"toUnknown.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/toUnknown.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,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IAErC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,SAAS,uBAAwB,aAAa,KAAG,UAe7D,CAAA"}
1
+ {"version":3,"file":"toUnknown.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/toUnknown.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,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IAErC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,SAAS,uBAAwB,aAAa,KAAG,UAc7D,CAAA"}
@@ -4,8 +4,7 @@ export const toUnknown = ({ value, context }) => {
4
4
  const { type: _type, title, description, example, ...skipped } = value;
5
5
  const extensionFields = toSpecificationExtensionsV3({
6
6
  skipped,
7
- context,
8
- type: 'unknown'
7
+ context
9
8
  });
10
9
  return new OasUnknown({
11
10
  title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.443",
3
+ "version": "0.0.444",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -6,7 +6,7 @@ const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
6
6
  const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toSpecificationExtensionsV3.js");
7
7
  const toArray = ({ value, context }) => {
8
8
  const { type: _type, items, title, description, nullable, uniqueItems, example, ...skipped } = value;
9
- const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'array' });
9
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
10
10
  if (uniqueItems === true) {
11
11
  throw new Error('uniqueItems is not supported');
12
12
  }
@@ -5,7 +5,7 @@ const Boolean_js_1 = require("./Boolean.js");
5
5
  const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toSpecificationExtensionsV3.js");
6
6
  const toBoolean = ({ value, context }) => {
7
7
  const { type: _type, title, description, nullable, example, ...skipped } = value;
8
- const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'boolean' });
8
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
9
9
  return new Boolean_js_1.OasBoolean({
10
10
  nullable,
11
11
  title,
@@ -14,7 +14,7 @@ const toComponentsV3 = ({ components, context }) => {
14
14
  return undefined;
15
15
  }
16
16
  const { schemas, responses, parameters, examples, requestBodies, headers, ...skipped } = components;
17
- const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'components' });
17
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
18
18
  const fields = {
19
19
  schemas: context.trace('schemas', () => (0, toSchemasV3_js_1.toOptionalSchemasV3)({ schemas, context })),
20
20
  responses: context.trace('responses', () => (0, toResponseV3_js_1.toOptionalResponsesV3)({ responses, context })),
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAeF,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAcF,CAAA"}
@@ -7,8 +7,7 @@ const toContactV3 = (contact, context) => {
7
7
  const { name, url, email, ...skipped } = contact;
8
8
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
9
9
  skipped,
10
- context,
11
- type: 'contact'
10
+ context
12
11
  });
13
12
  return new Contact_js_1.OasContact({
14
13
  name,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,KAAK,gBAAgB,GAAG;IACtB,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,gCAG5B,gBAAgB,KAAG,cAmBrB,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,KAAK,gBAAgB,GAAG;IACtB,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB,gCAG5B,gBAAgB,KAAG,cAkBrB,CAAA"}
@@ -10,8 +10,7 @@ const toDocumentFieldsV3 = ({ documentObject, context }) => {
10
10
  const { openapi, info, paths, components, tags, ...skipped } = documentObject;
11
11
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
12
12
  skipped,
13
- context,
14
- type: 'document'
13
+ context
15
14
  });
16
15
  const fields = {
17
16
  openapi,
@@ -38,7 +38,7 @@ const toExampleV3 = ({ example, context }) => {
38
38
  return (0, toRefV31_js_1.toRefV31)({ ref: example, refType: 'example', context });
39
39
  }
40
40
  const { summary, description, value, ...skipped } = example;
41
- const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'example' });
41
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
42
42
  return new Example_js_1.OasExample({
43
43
  summary,
44
44
  description,
@@ -22,7 +22,7 @@ const toHeaderV3 = ({ header, context }) => {
22
22
  return (0, toRefV31_js_1.toRefV31)({ ref: header, refType: 'header', context });
23
23
  }
24
24
  const { description, required, deprecated, schema, example, examples, content, ...skipped } = header;
25
- const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'header' });
25
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
26
26
  const fields = {
27
27
  description,
28
28
  required,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,UAAU,CAAA;IAC1B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,OAkB1D,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,UAAU,CAAA;IAC1B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,OAiB1D,CAAA"}
@@ -9,8 +9,7 @@ const toInfoV3 = ({ info, context }) => {
9
9
  const { title, description, termsOfService, contact, license, version, ...skipped } = info;
10
10
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
11
11
  skipped,
12
- context,
13
- type: 'info'
12
+ context
14
13
  });
15
14
  return new Info_js_1.OasInfo({
16
15
  title,
@@ -6,7 +6,7 @@ const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toS
6
6
  const integer_types_js_1 = require("./integer-types.js");
7
7
  const toInteger = ({ value, context }) => {
8
8
  const { type: _type, title, description, nullable, format, enum: enums, example, ...skipped } = integer_types_js_1.oasIntegerData.parse(value);
9
- const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'integer' });
9
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
10
10
  return new Integer_js_1.OasInteger({
11
11
  title,
12
12
  description,
@@ -7,7 +7,7 @@ const toSchemasV3_js_1 = require("../schema/toSchemasV3.js");
7
7
  const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toSpecificationExtensionsV3.js");
8
8
  const toIntersection = ({ value, members, context }) => {
9
9
  const { discriminator, title, description, nullable, ...skipped } = value;
10
- const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'intersection' });
10
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
11
11
  return new Intersection_js_1.OasIntersection({
12
12
  title,
13
13
  description,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAcF,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAO,MAAM,WAAW,YACb,SAAS,CAAC,aAAa,WACvB,YAAY,KACpB,UAaF,CAAA"}
@@ -7,8 +7,7 @@ const toLicenseV3 = (license, context) => {
7
7
  const { name, url, ...skipped } = license;
8
8
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
9
9
  skipped,
10
- context,
11
- type: 'license'
10
+ context
12
11
  });
13
12
  return new License_js_1.OasLicense({
14
13
  name,
@@ -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,YAwB1B,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,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAMlE,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;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,YAuB1B,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,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAMlE,CAAA"}
@@ -9,8 +9,7 @@ const toMediaTypeItemV3 = ({ mediaTypeItem, mediaType, context }) => {
9
9
  const { schema, example, examples, ...skipped } = mediaTypeItem;
10
10
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
11
11
  skipped,
12
- context,
13
- type: 'media-type'
12
+ context
14
13
  });
15
14
  const fields = {
16
15
  mediaType,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SAgB3D,CAAA"}
1
+ {"version":3,"file":"toNumber.d.ts","sourceRoot":"","sources":["../../../src/oas/number/toNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SAe3D,CAAA"}
@@ -7,8 +7,7 @@ const toNumber = ({ value, context }) => {
7
7
  const { type: _type, title, description, nullable, example, ...skipped } = value;
8
8
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
9
9
  skipped,
10
- context,
11
- type: 'number'
10
+ context
12
11
  });
13
12
  return new Number_js_1.OasNumber({
14
13
  title,
@@ -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,SAsC3D,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;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,SAyC3D,CAAA"}
@@ -9,9 +9,11 @@ const toObject = ({ value, context }) => {
9
9
  const { type: _type, title, description, properties, required, additionalProperties, nullable, example, ...skipped } = value;
10
10
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
11
11
  skipped,
12
- context,
13
- type: 'object'
12
+ context
14
13
  });
14
+ if (extensionFields && Object.keys(extensionFields).length > 0) {
15
+ context.registerExtension({ extensionFields, type: 'model' });
16
+ }
15
17
  const fields = {
16
18
  title,
17
19
  description,
@@ -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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,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;AAOD,eAAO,MAAM,aAAa,0CAIvB,iBAAiB,KAAG,YA6BtB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC,WAAW,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,uBAAwB,kBAAkB,KAAG,YAAY,EAsDnF,CAAA"}
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,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,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;AAOD,eAAO,MAAM,aAAa,0CAIvB,iBAAiB,KAAG,YAmCtB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC,WAAW,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,uBAAwB,kBAAkB,KAAG,YAAY,EAsDnF,CAAA"}
@@ -11,6 +11,10 @@ const toSpecificationExtensionsV3_js_1 = require("../specificationExtensions/toS
11
11
  const toOperationV3 = ({ operation, operationInfo, context }) => {
12
12
  const { method, path, pathItem } = operationInfo;
13
13
  const { operationId, tags, summary, description, parameters, requestBody, responses, deprecated, ...skipped } = operation;
14
+ const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context });
15
+ if (extensionFields && Object.keys(extensionFields).length > 0) {
16
+ context.registerExtension({ extensionFields, type: 'operation' });
17
+ }
14
18
  return new Operation_js_1.OasOperation({
15
19
  pathItem,
16
20
  path,
@@ -23,7 +27,7 @@ const toOperationV3 = ({ operation, operationInfo, context }) => {
23
27
  requestBody: context.trace('requestBody', () => (0, toRequestBodiesV3_js_1.toRequestBodyV3)({ requestBody, context })),
24
28
  responses: context.trace('responses', () => (0, toResponseV3_js_1.toResponsesV3)({ responses, context })),
25
29
  deprecated,
26
- extensionFields: (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'operation' })
30
+ extensionFields
27
31
  });
28
32
  };
29
33
  exports.toOperationV3 = toOperationV3;
@@ -39,8 +39,7 @@ const toParameterV3 = ({ parameter, context }) => {
39
39
  const { name, in: location, description, required, deprecated, allowEmptyValue, allowReserved, schema, example, examples, content, style, explode, ...skipped } = parameter;
40
40
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
41
41
  skipped,
42
- context,
43
- type: 'parameter'
42
+ context
44
43
  });
45
44
  const parsedLocation = parameter_types_js_1.oasParameterLocation.parse(location);
46
45
  if (parsedLocation === 'path' && !required) {
@@ -10,7 +10,7 @@ const toPathItemV3 = ({ pathItem, context }) => {
10
10
  summary,
11
11
  description,
12
12
  parameters: context.trace('parameters', () => (0, toParameterV3_js_1.toParameterListV3)({ parameters, context })),
13
- extensionFields: (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context, type: 'pathItem' })
13
+ extensionFields: (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({ skipped, context })
14
14
  });
15
15
  };
16
16
  exports.toPathItemV3 = toPathItemV3;
@@ -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,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,GAAG,SAAS,CAAA;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,eAAe,6BAGzB,mBAAmB,KAAG,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,SA2BjE,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAA;IAClG,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,+BAG3B,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,SAYnF,CAAA"}
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,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,GAAG,SAAS,CAAA;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,eAAe,6BAGzB,mBAAmB,KAAG,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,SA0BjE,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAA;IAClG,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,+BAG3B,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,SAYnF,CAAA"}
@@ -16,8 +16,7 @@ const toRequestBodyV3 = ({ requestBody, context }) => {
16
16
  const { description, content, required, ...skipped } = requestBody;
17
17
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
18
18
  skipped,
19
- context,
20
- type: 'requestBody'
19
+ context
21
20
  });
22
21
  const fields = {
23
22
  description,
@@ -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,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,2BAGvB,iBAAiB,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAMrE,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,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,SAMjF,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,CAqBpD,CAAA"}
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,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,2BAGvB,iBAAiB,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAMrE,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,KAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,SAMjF,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,CAoBpD,CAAA"}
@@ -27,8 +27,7 @@ const toResponseV3 = ({ response, context }) => {
27
27
  const { description, headers, content, ...skipped } = response;
28
28
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
29
29
  skipped,
30
- context,
31
- type: 'response'
30
+ context
32
31
  });
33
32
  const fields = {
34
33
  description,
@@ -31,9 +31,9 @@ const toSchemaV3 = ({ schema, context }) => {
31
31
  return (0, toRefV31_js_1.toRefV31)({ ref: schema, refType: 'schema', context });
32
32
  }
33
33
  // Workaround for dodgy Reapit schema
34
- if (schema.type !== 'array' && 'optional' in schema && schema.optional === true) {
35
- schema.nullable = true;
36
- }
34
+ // if (schema.type !== 'array' && 'optional' in schema && schema.optional === true) {
35
+ // schema.nullable = true
36
+ // }
37
37
  return (0, ts_pattern_1.match)(schema)
38
38
  .with({ oneOf: ts_pattern_1.P.array() }, ({ oneOf: members, ...value }) => {
39
39
  // if (members.length === 1) {
@@ -1,9 +1,8 @@
1
1
  import type { ParseContext } from '../../context/ParseContext.js';
2
2
  type ToSpecificationExtensionsV3Args = {
3
- type: string;
4
3
  skipped: Record<string, unknown>;
5
4
  context: ParseContext;
6
5
  };
7
- export declare const toSpecificationExtensionsV3: ({ type, skipped: s, context }: ToSpecificationExtensionsV3Args) => Record<string, unknown> | undefined;
6
+ export declare const toSpecificationExtensionsV3: ({ skipped: s, context }: ToSpecificationExtensionsV3Args) => Record<string, unknown> | undefined;
8
7
  export {};
9
8
  //# sourceMappingURL=toSpecificationExtensionsV3.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toSpecificationExtensionsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/specificationExtensions/toSpecificationExtensionsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,KAAK,+BAA+B,GAAG;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,2BAA2B,kCAIrC,+BAA+B,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAgC9D,CAAA"}
1
+ {"version":3,"file":"toSpecificationExtensionsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/specificationExtensions/toSpecificationExtensionsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,KAAK,+BAA+B,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,2BAA2B,4BAGrC,+BAA+B,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SA4B9D,CAAA"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toSpecificationExtensionsV3 = void 0;
4
- const toSpecificationExtensionsV3 = ({ type, skipped: s, context }) => {
4
+ const toSpecificationExtensionsV3 = ({ skipped: s, context }) => {
5
5
  const { skipped, extensionFields } = Object.entries(s).reduce((acc, [key, value]) => {
6
6
  if (!key.startsWith('x-')) {
7
7
  return acc;
@@ -17,9 +17,6 @@ const toSpecificationExtensionsV3 = ({ type, skipped: s, context }) => {
17
17
  };
18
18
  }, { skipped: s, extensionFields: undefined });
19
19
  context.logSkippedFields(skipped);
20
- if (extensionFields && Object.keys(extensionFields).length > 0) {
21
- context.registerExtension({ extensionFields, type });
22
- }
23
20
  return extensionFields;
24
21
  };
25
22
  exports.toSpecificationExtensionsV3 = toSpecificationExtensionsV3;
@@ -1 +1 @@
1
- {"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../../src/oas/string/toString.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,EAAE,MAAM,aAAa,CAAA;AAIvC,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":"toString.d.ts","sourceRoot":"","sources":["../../../src/oas/string/toString.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,EAAE,MAAM,aAAa,CAAA;AAIvC,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IACrC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,uBAAwB,YAAY,KAAG,SAkC3D,CAAA"}
@@ -8,9 +8,11 @@ const toString = ({ value, context }) => {
8
8
  const { type: _type, title, description, enum: enums, nullable, example, format, maxLength, minLength, ...skipped } = string_types_js_1.oasStringData.parse(value);
9
9
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
10
10
  skipped,
11
- context,
12
- type: 'string'
11
+ context
13
12
  });
13
+ if (extensionFields && Object.keys(extensionFields).length > 0) {
14
+ context.registerExtension({ extensionFields, type: 'string' });
15
+ }
14
16
  return new String_js_1.OasString({
15
17
  title,
16
18
  description,
@@ -1 +1 @@
1
- {"version":3,"file":"toTagsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/tag/toTagsV3.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,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,SAAS,EAAE,GAAG,SAAS,CAAA;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,MAAM,EAAE,GAAG,SAMrE,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,SAAS,CAAC,SAAS,CAAA;IACxB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,OAAO,qBAAsB,WAAW,KAAG,MAgBvD,CAAA"}
1
+ {"version":3,"file":"toTagsV3.d.ts","sourceRoot":"","sources":["../../../src/oas/tag/toTagsV3.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,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,SAAS,EAAE,GAAG,SAAS,CAAA;IACvC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,sBAAuB,YAAY,KAAG,MAAM,EAAE,GAAG,SAMrE,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,SAAS,CAAC,SAAS,CAAA;IACxB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,OAAO,qBAAsB,WAAW,KAAG,MAevD,CAAA"}
@@ -14,8 +14,7 @@ const toTagV3 = ({ tag, context }) => {
14
14
  const { name, description, ...skipped } = tag;
15
15
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
16
16
  skipped,
17
- context,
18
- type: 'tag'
17
+ context
19
18
  });
20
19
  const fields = {
21
20
  name,
@@ -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,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAKrC,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,QAsBlE,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,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAKrC,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,QAqBlE,CAAA"}
@@ -9,8 +9,7 @@ const toUnion = ({ value, members, context }) => {
9
9
  const { discriminator, title, description, nullable, example, ...skipped } = value;
10
10
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
11
11
  skipped,
12
- context,
13
- type: 'union'
12
+ context
14
13
  });
15
14
  return new Union_js_1.OasUnion({
16
15
  title,
@@ -1 +1 @@
1
- {"version":3,"file":"toUnknown.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/toUnknown.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,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IAErC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,SAAS,uBAAwB,aAAa,KAAG,UAe7D,CAAA"}
1
+ {"version":3,"file":"toUnknown.d.ts","sourceRoot":"","sources":["../../../src/oas/unknown/toUnknown.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,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAA;IAErC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,SAAS,uBAAwB,aAAa,KAAG,UAc7D,CAAA"}
@@ -7,8 +7,7 @@ const toUnknown = ({ value, context }) => {
7
7
  const { type: _type, title, description, example, ...skipped } = value;
8
8
  const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
9
9
  skipped,
10
- context,
11
- type: 'unknown'
10
+ context
12
11
  });
13
12
  return new Unknown_js_1.OasUnknown({
14
13
  title,