Skip to content

Commit

Permalink
Fixed < 15 node compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jul 28, 2022
1 parent 7193a80 commit ad786c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processors/AsyncAPIInputProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class AsyncAPIInputProcessor extends AbstractInputProcessor {
let schemaUid = schema.uid();
//Because the constraint functionality of generators cannot handle -, <, >, we remove them from the id if it's an anonymous schema.
if (schemaUid.includes('<anonymous-schema')) {
schemaUid = schemaUid.replace('<', '').replaceAll('-', '_').replace('>', '');
schemaUid = schemaUid.replace('<', '').replace(/-/g, '_').replace('>', '');
}

if (alreadyIteratedSchemas.has(schemaUid)) {
Expand Down

0 comments on commit ad786c6

Please sign in to comment.