Skip to content

Commit

Permalink
Fix centralizer bug (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe authored Mar 12, 2024
1 parent e4bf912 commit 8c239f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/utils/schema_centralizer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ class SchemaCentralizer {
Schema originalSchema,
_ComponentNameSuggester suggester,
) {
if (originalSchema.ref != null) {
return originalSchema;
}

final suggestedName = suggester.suggestName();
switch (originalSchema.type) {
case (SchemaType.object ||
Expand Down

0 comments on commit 8c239f9

Please sign in to comment.