@skmtc/core 0.42.0 → 0.44.0

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 (39) hide show
  1. package/esm/context/ParseContext.d.ts +4 -2
  2. package/esm/context/ParseContext.js +23 -8
  3. package/esm/context/generateTypes.d.ts +3 -2
  4. package/esm/helpers/refFns.d.ts +8 -3
  5. package/esm/helpers/refFns.js +26 -9
  6. package/esm/oas/operation/Operation.d.ts +19 -4
  7. package/esm/oas/operation/Operation.js +30 -10
  8. package/esm/oas/operation/toEffectiveParameters.d.ts +9 -0
  9. package/esm/oas/operation/toEffectiveParameters.js +27 -0
  10. package/esm/oas/ref/DanglingRefError.d.ts +18 -3
  11. package/esm/oas/ref/DanglingRefError.js +17 -4
  12. package/esm/oas/ref/Ref.d.ts +29 -13
  13. package/esm/oas/ref/Ref.js +63 -38
  14. package/esm/oas/webhook/Webhook.d.ts +10 -0
  15. package/esm/oas/webhook/Webhook.js +13 -1
  16. package/esm/parse/anyOfSystem.js +6 -8
  17. package/esm/parse/v3-0/schema/toSchemasV3.js +3 -3
  18. package/esm/parse/v3-1/schema/toSchemasV3.js +3 -3
  19. package/esm/parse/v3-2/schema/toSchemasV3.js +3 -3
  20. package/package.json +1 -1
  21. package/script/context/ParseContext.d.ts +4 -2
  22. package/script/context/ParseContext.js +23 -8
  23. package/script/context/generateTypes.d.ts +3 -2
  24. package/script/helpers/refFns.d.ts +8 -3
  25. package/script/helpers/refFns.js +27 -10
  26. package/script/oas/operation/Operation.d.ts +19 -4
  27. package/script/oas/operation/Operation.js +29 -9
  28. package/script/oas/operation/toEffectiveParameters.d.ts +9 -0
  29. package/script/oas/operation/toEffectiveParameters.js +29 -1
  30. package/script/oas/ref/DanglingRefError.d.ts +18 -3
  31. package/script/oas/ref/DanglingRefError.js +17 -4
  32. package/script/oas/ref/Ref.d.ts +29 -13
  33. package/script/oas/ref/Ref.js +63 -38
  34. package/script/oas/webhook/Webhook.d.ts +10 -0
  35. package/script/oas/webhook/Webhook.js +13 -1
  36. package/script/parse/anyOfSystem.js +6 -8
  37. package/script/parse/v3-0/schema/toSchemasV3.js +3 -3
  38. package/script/parse/v3-1/schema/toSchemasV3.js +3 -3
  39. package/script/parse/v3-2/schema/toSchemasV3.js +3 -3
@@ -234,7 +234,7 @@ const toSchemaV3 = ({ schema, stackTrail, context }) => {
234
234
  const system = (0, allOfSystem_js_1.toAllOfSystem)(context);
235
235
  const merged = (0, merge_intersection_js_1.mergeIntersection)({
236
236
  schema: wrapper,
237
- getRef: (0, refFns_js_2.toGetRef)(context.documentObject, $ref => context.toDanglingAllOfMember({ $ref, stackTrail })),
237
+ getRef: (0, refFns_js_2.toGetRef)(context.documentObject, error => context.toDanglingAllOfMember({ error, stackTrail })),
238
238
  normalize: normalize_schema_shape_js_1.normalizeMergeMember,
239
239
  system
240
240
  });
@@ -268,7 +268,7 @@ const toSchemaV3 = ({ schema, stackTrail, context }) => {
268
268
  schema: withoutNull,
269
269
  // A member's own `allOf`, or a member merged with the keywords beside
270
270
  // the `oneOf`, is merged here, so it follows `allOfMember` too.
271
- getRef: (0, refFns_js_2.toGetRef)(context.documentObject, $ref => context.toDanglingAllOfMember({ $ref, stackTrail })),
271
+ getRef: (0, refFns_js_2.toGetRef)(context.documentObject, error => context.toDanglingAllOfMember({ error, stackTrail })),
272
272
  normalize: normalize_schema_shape_js_1.normalizeMergeMember,
273
273
  system,
274
274
  groupType: 'oneOf'
@@ -350,7 +350,7 @@ const toSchemaV3 = ({ schema, stackTrail, context }) => {
350
350
  const merged = (0, merge_union_js_1.mergeUnion)({
351
351
  schema: withoutNull,
352
352
  // As for `oneOf`: what is merged here follows `allOfMember`.
353
- getRef: (0, refFns_js_2.toGetRef)(context.documentObject, $ref => context.toDanglingAllOfMember({ $ref, stackTrail })),
353
+ getRef: (0, refFns_js_2.toGetRef)(context.documentObject, error => context.toDanglingAllOfMember({ error, stackTrail })),
354
354
  normalize: normalize_schema_shape_js_1.normalizeMergeMember,
355
355
  system,
356
356
  groupType: 'anyOf'