Skip to content

Commit

Permalink
Remove null check for dynamic type in schema generation
Browse files Browse the repository at this point in the history
  • Loading branch information
walsha2 committed Aug 17, 2023
1 parent 084942d commit 2091cce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.4.9

* Remove null check for dynamic type in schema generation

## 0.4.8

* Add default value for schema validation constants
Expand Down
2 changes: 1 addition & 1 deletion lib/src/generators/schema.dart
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ class SchemaGenerator extends BaseGenerator {
'dynamic';
c += "$unionName ${nullable ? '?' : ''} $name,\n\n";
} else {
c += "dynamic ${nullable ? '?' : ''} $name,\n\n";
c += "dynamic $name,\n\n";
}
file.writeAsStringSync(c, mode: FileMode.append);
},
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: openapi_spec
description: OpenAPI Specification generator using native Dart code, as well as an all-in-one parser of existing specifications.
version: 0.4.8
version: 0.4.9
maintainer: Taza Technology LLC
repository: https://github.com/tazatechnology/openapi_spec
issue_tracker: https://github.com/tazatechnology/openapi_spec/issues
Expand Down

0 comments on commit 2091cce

Please sign in to comment.