@tim-smart/openapi-gen 0.3.10 → 0.3.11
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/main.js +14 -8
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -29996,15 +29996,21 @@ var make63 = gen2(function* () {
|
|
|
29996
29996
|
addRefs(schema.items, void 0);
|
|
29997
29997
|
}
|
|
29998
29998
|
} else if ("allOf" in schema) {
|
|
29999
|
-
|
|
30000
|
-
...
|
|
30001
|
-
|
|
30002
|
-
|
|
30003
|
-
if (childName !== void 0) {
|
|
30004
|
-
addRefs(resolved, childName + "Enum", asStruct2);
|
|
30005
|
-
store.set(childName, resolved);
|
|
29999
|
+
if (schema.allOf.length === 1) {
|
|
30000
|
+
const resolved = { ...schema, ...schema.allOf[0] };
|
|
30001
|
+
delete resolved.allOf;
|
|
30002
|
+
addRefs(resolved, childName, asStruct2);
|
|
30006
30003
|
} else {
|
|
30007
|
-
|
|
30004
|
+
const resolved = resolveAllOf(schema, {
|
|
30005
|
+
...root2,
|
|
30006
|
+
...context7
|
|
30007
|
+
});
|
|
30008
|
+
if (childName !== void 0) {
|
|
30009
|
+
addRefs(resolved, childName + "Enum", asStruct2);
|
|
30010
|
+
store.set(childName, resolved);
|
|
30011
|
+
} else {
|
|
30012
|
+
addRefs(resolved, void 0, asStruct2);
|
|
30013
|
+
}
|
|
30008
30014
|
}
|
|
30009
30015
|
} else if ("anyOf" in schema) {
|
|
30010
30016
|
schema.anyOf.forEach(
|