@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.
- package/esm/context/ParseContext.d.ts +4 -2
- package/esm/context/ParseContext.js +23 -8
- package/esm/context/generateTypes.d.ts +3 -2
- package/esm/helpers/refFns.d.ts +8 -3
- package/esm/helpers/refFns.js +26 -9
- package/esm/oas/operation/Operation.d.ts +19 -4
- package/esm/oas/operation/Operation.js +30 -10
- package/esm/oas/operation/toEffectiveParameters.d.ts +9 -0
- package/esm/oas/operation/toEffectiveParameters.js +27 -0
- package/esm/oas/ref/DanglingRefError.d.ts +18 -3
- package/esm/oas/ref/DanglingRefError.js +17 -4
- package/esm/oas/ref/Ref.d.ts +29 -13
- package/esm/oas/ref/Ref.js +63 -38
- package/esm/oas/webhook/Webhook.d.ts +10 -0
- package/esm/oas/webhook/Webhook.js +13 -1
- package/esm/parse/anyOfSystem.js +6 -8
- package/esm/parse/v3-0/schema/toSchemasV3.js +3 -3
- package/esm/parse/v3-1/schema/toSchemasV3.js +3 -3
- package/esm/parse/v3-2/schema/toSchemasV3.js +3 -3
- package/package.json +1 -1
- package/script/context/ParseContext.d.ts +4 -2
- package/script/context/ParseContext.js +23 -8
- package/script/context/generateTypes.d.ts +3 -2
- package/script/helpers/refFns.d.ts +8 -3
- package/script/helpers/refFns.js +27 -10
- package/script/oas/operation/Operation.d.ts +19 -4
- package/script/oas/operation/Operation.js +29 -9
- package/script/oas/operation/toEffectiveParameters.d.ts +9 -0
- package/script/oas/operation/toEffectiveParameters.js +29 -1
- package/script/oas/ref/DanglingRefError.d.ts +18 -3
- package/script/oas/ref/DanglingRefError.js +17 -4
- package/script/oas/ref/Ref.d.ts +29 -13
- package/script/oas/ref/Ref.js +63 -38
- package/script/oas/webhook/Webhook.d.ts +10 -0
- package/script/oas/webhook/Webhook.js +13 -1
- package/script/parse/anyOfSystem.js +6 -8
- package/script/parse/v3-0/schema/toSchemasV3.js +3 -3
- package/script/parse/v3-1/schema/toSchemasV3.js +3 -3
- 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,
|
|
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,
|
|
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,
|
|
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'
|