diff --git a/CHANGELOG.md b/CHANGELOG.md index 47ee31a..5ceb27d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/generators/schema.dart b/lib/src/generators/schema.dart index 6dd30db..e7a0b19 100644 --- a/lib/src/generators/schema.dart +++ b/lib/src/generators/schema.dart @@ -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); }, diff --git a/pubspec.yaml b/pubspec.yaml index 8b19086..facd5b1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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