Browse Source

dynamite: make registered state a Set to avoid duplicates

pull/370/head
Nikolas Rimikis 2 years ago
parent
commit
b7b7fef3c3
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 6
      packages/dynamite/dynamite/lib/src/openapi_builder.dart

6
packages/dynamite/dynamite/lib/src/openapi_builder.dart

@ -1228,10 +1228,10 @@ class State {
State(this.prefix);
final String prefix;
final resolvedTypes = <String>[];
final registeredJsonObjects = <String>[];
final resolvedTypes = <String>{};
final registeredJsonObjects = <String>{};
final output = <Spec>[];
final resolvedTypeCombinations = <TypeResult>[];
final resolvedTypeCombinations = <TypeResult>{};
}
TypeResult resolveObject(

Loading…
Cancel
Save