Ethetic modification of lists and foreign keys

This commit is contained in:
2023-02-07 17:08:06 +01:00
parent 0ca57b4e22
commit 09138a3602
4 changed files with 24 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ export class JsonschemasService {
delete resource.properties[prop_name]
} else if (this.is_reference(prop)) {
this.resolveReference(resource, prop);
} else if (prop.hasOwnProperty('oneOf')) {
} else if (this.is_union(prop)) {
for (let i in prop.oneOf) {
this.resolveReference(resource, prop.oneOf[i]);
}