@skmtc/core 0.0.691 → 0.0.692
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.
|
@@ -70,7 +70,7 @@ export const toSchemaV3 = ({ schema, context }) => {
|
|
|
70
70
|
}
|
|
71
71
|
const { oneOf: members, ...value } = merged;
|
|
72
72
|
if (members.length === 0) {
|
|
73
|
-
|
|
73
|
+
throw new Error('"oneOf" array is empty');
|
|
74
74
|
}
|
|
75
75
|
if (members.length === 1) {
|
|
76
76
|
return toSchemaV3({ schema: members[0], context });
|
|
@@ -98,7 +98,7 @@ export const toSchemaV3 = ({ schema, context }) => {
|
|
|
98
98
|
}
|
|
99
99
|
const { anyOf: members, ...value } = merged;
|
|
100
100
|
if (members.length === 0) {
|
|
101
|
-
|
|
101
|
+
throw new Error('"anyOf" array is empty');
|
|
102
102
|
}
|
|
103
103
|
if (members.length === 1) {
|
|
104
104
|
return toSchemaV3({ schema: members[0], context });
|
package/package.json
CHANGED
|
@@ -78,7 +78,7 @@ const toSchemaV3 = ({ schema, context }) => {
|
|
|
78
78
|
}
|
|
79
79
|
const { oneOf: members, ...value } = merged;
|
|
80
80
|
if (members.length === 0) {
|
|
81
|
-
|
|
81
|
+
throw new Error('"oneOf" array is empty');
|
|
82
82
|
}
|
|
83
83
|
if (members.length === 1) {
|
|
84
84
|
return (0, exports.toSchemaV3)({ schema: members[0], context });
|
|
@@ -106,7 +106,7 @@ const toSchemaV3 = ({ schema, context }) => {
|
|
|
106
106
|
}
|
|
107
107
|
const { anyOf: members, ...value } = merged;
|
|
108
108
|
if (members.length === 0) {
|
|
109
|
-
|
|
109
|
+
throw new Error('"anyOf" array is empty');
|
|
110
110
|
}
|
|
111
111
|
if (members.length === 1) {
|
|
112
112
|
return (0, exports.toSchemaV3)({ schema: members[0], context });
|