Skip to content

Commit

Permalink
fix: Using additionalProperties:true results in type error in generat…
Browse files Browse the repository at this point in the history
…ed code hpoul#12
  • Loading branch information
timalenustmf authored May 10, 2023
1 parent 4717ecb commit 358d141
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1243,9 +1243,9 @@ class OpenApiLibraryGenerator {
..name = '_additionalProperties'
..type = _referType(
'Map',
generics: [_typeString, refer('Object')],
generics: [_typeString, refer('dynamic')],
)
..assignment = literalMap({}, _typeString, refer('Object')).code
..assignment = literalMap({}, _typeString, refer('dynamic')).code
..modifier = FieldModifier.final$));
cb.methods.add(
Method((mb) => mb
Expand Down

0 comments on commit 358d141

Please sign in to comment.