From b7b7fef3c34678caedfb0b3a39bd53be10c81efd Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Wed, 7 Jun 2023 19:13:56 +0200 Subject: [PATCH] dynamite: make registered state a Set to avoid duplicates --- packages/dynamite/dynamite/lib/src/openapi_builder.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dynamite/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/dynamite/lib/src/openapi_builder.dart index e0d79198..bd3b550d 100644 --- a/packages/dynamite/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/dynamite/lib/src/openapi_builder.dart @@ -1228,10 +1228,10 @@ class State { State(this.prefix); final String prefix; - final resolvedTypes = []; - final registeredJsonObjects = []; + final resolvedTypes = {}; + final registeredJsonObjects = {}; final output = []; - final resolvedTypeCombinations = []; + final resolvedTypeCombinations = {}; } TypeResult resolveObject(