Skip to content

Commit

Permalink
fix converting additional properties of type array.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed Jan 29, 2025
1 parent ba2864d commit 122887f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/openapi_code_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.6.0-dev.4
## 1.6.0-dev.6

* Support for restricted `additionalProperties`

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ class OpenApiLibraryGenerator {
APIType.boolean => expression.asA(refer('bool')),
APIType.array => switch (schema.items) {
final itemSchema? => expression
.asA(_referType('List', generics: [refer('dynamic')]))
.asA(_referType('Iterable', generics: [refer('dynamic')]))
.property('map')([
Method(
(mb) => mb
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi_code_builder/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: openapi_code_builder
description: Generate Dtos, client and server scaffolds for openapi specs.
version: 1.6.0-dev.4
version: 1.6.0-dev.6
homepage: https://github.com/hpoul/openapi_dart/tree/master/packages/openapi_code_builder

environment:
Expand Down

0 comments on commit 122887f

Please sign in to comment.