Skip to content

Commit c67c436

Browse files
Fix recursive properties into schema parsing
1 parent 8fcdea5 commit c67c436

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/parsers/open-api-v3/parser-base.service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ export abstract class ParserBaseService {
220220
newModel.values = rawAttribute.enum;
221221
this.store.models.add(newModel);
222222
attribute.typeURI = newModel.uri;
223+
} else if (rawAttribute.type === 'object' && rawAttribute.properties) {
224+
const newModel = new ModelModel(defaultName);
225+
newModel.addAttributes(this.parseAttributes(rawAttribute, defaultName));
226+
this.store.models.add(newModel);
227+
attribute.typeURI = newModel.uri;
223228
} else {
224229
console.debug(`${attrName} of type ${rawAttribute.type}`);
225230
attribute.typeURI = rawAttribute.type;

0 commit comments

Comments
 (0)