Skip to content

Commit

Permalink
fix: Apply types to default empty maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexushunter committed Sep 24, 2023
1 parent 64090ff commit bfb0ec4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions openapi-generator/lib/src/models/generator_arguments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,16 @@ class GeneratorArguments {
templateDirectory =
templateDirectory ?? annotation.templateDirectory ?? '',
generator = generator ?? annotation.generatorName,
typeMappings = typeMapping ?? annotation.typeMappings ?? {},
importMappings = importMapping ?? annotation.importMappings ?? {},
reservedWordsMappings =
reservedWordsMapping ?? annotation.reservedWordsMappings ?? {},
typeMappings =
typeMapping ?? annotation.typeMappings ?? <String, String>{},
importMappings =
importMapping ?? annotation.importMappings ?? <String, String>{},
reservedWordsMappings = reservedWordsMapping ??
annotation.reservedWordsMappings ??
<String, String>{},
inlineSchemaNameMappings = inlineSchemaNameMapping ??
annotation.inlineSchemaNameMappings ??
{},
<String, String>{},
additionalProperties =
additionalProperties ?? annotation.additionalProperties,
inlineSchemaOptions = inlineSchemaOptions,
Expand Down

0 comments on commit bfb0ec4

Please sign in to comment.