diff --git a/swagger_parser/README.md b/swagger_parser/README.md index ca6a2451..289c223b 100644 --- a/swagger_parser/README.md +++ b/swagger_parser/README.md @@ -31,17 +31,18 @@ In your pubspec.yaml, add the following dependencies: ```yaml dependencies: - # dart_mappable: ^4.2.1 # for dart_mappable - # dio: ^5.4.1 - # freezed_annotation: ^2.4.1 # for freezed - # json_annotation: ^4.8.1 + # dart_mappable: ^4.2.2 # for dart_mappable + # dio: ^5.4.3 + # freezed_annotation: ^2.5.2 # for freezed + # json_annotation: ^4.9.0 # retrofit: ^4.1.0 dev_dependencies: - # build_runner: ^2.4.8 - # dart_mappable_builder: ^4.2.1 # for dart_mappable - # freezed: ^2.4.7 # for freezed - # json_serializable: ^6.7.1 + # build_runner: ^2.4.11 + # carapacik_lints: ^1.6.0 + # dart_mappable_builder: ^4.2.3 # for dart_mappable + # freezed: ^2.5.2 # for freezed + # json_serializable: ^6.8.0 # retrofit_generator: ^8.1.0 swagger_parser: ``` @@ -84,11 +85,6 @@ swagger_parser: # If the value is 'true', then the annotation will be added to all requests. extras_parameter_by_default: false - # Optional (dart only). - # It is used if the value does not have the annotations 'required' and 'nullable'. - # If the value is 'true', then value be 'required', if the value is 'false', then 'nullable'. - required_by_default: true - # Optional (dart only). Set 'true' to generate root client # with interface and all clients instances. root_client: true diff --git a/swagger_parser/analysis_options.yaml b/swagger_parser/analysis_options.yaml index 511d8651..42cbee14 100644 --- a/swagger_parser/analysis_options.yaml +++ b/swagger_parser/analysis_options.yaml @@ -8,4 +8,3 @@ linter: avoid_equals_and_hash_code_on_mutable_classes: false package_api_docs: true prefer_relative_imports: true - unnecessary_library_name: false diff --git a/swagger_parser/example/pubspec.yaml b/swagger_parser/example/pubspec.yaml index 84beaa4c..4ef94471 100644 --- a/swagger_parser/example/pubspec.yaml +++ b/swagger_parser/example/pubspec.yaml @@ -2,21 +2,21 @@ name: example description: A project that showcases usage of swagger_parser publish_to: none environment: - sdk: ^3.0.0 + sdk: '>=3.2.0 <4.0.0' dependencies: - dart_mappable: ^4.2.1 - dio: ^5.4.1 + dart_mappable: ^4.2.2 + dio: ^5.4.3+1 freezed_annotation: ^2.4.1 - json_annotation: ^4.8.1 + json_annotation: ^4.9.0 retrofit: ^4.1.0 dev_dependencies: - build_runner: ^2.4.8 - carapacik_lints: ^1.4.2 - dart_mappable_builder: ^4.2.1 - freezed: ^2.4.7 - json_serializable: ^6.7.1 + build_runner: ^2.4.11 + carapacik_lints: ^1.6.0 + dart_mappable_builder: ^4.2.3 + freezed: ^2.5.2 + json_serializable: ^6.8.0 retrofit_generator: ^8.1.0 swagger_parser: path: diff --git a/swagger_parser/lib/src/parser/parser/open_api_parser.dart b/swagger_parser/lib/src/parser/parser/open_api_parser.dart index 110a5168..6ccba12b 100644 --- a/swagger_parser/lib/src/parser/parser/open_api_parser.dart +++ b/swagger_parser/lib/src/parser/parser/open_api_parser.dart @@ -1090,7 +1090,7 @@ class OpenApiParser { // Add to support this: // anyOf: // - type: array - // - tupe: null + // - type: null // items: // type: string final nMap = {...map} diff --git a/swagger_parser/lib/src/parser/swagger_parser_core.dart b/swagger_parser/lib/src/parser/swagger_parser_core.dart index cba0c9d5..2e409c32 100644 --- a/swagger_parser/lib/src/parser/swagger_parser_core.dart +++ b/swagger_parser/lib/src/parser/swagger_parser_core.dart @@ -1,7 +1,7 @@ /// Parse Open Api definition to universal dart models /// /// Used by [swagger_parser](https://pub.dev/packages/swagger_parser) -library swagger_parser_core; +library; export 'config/parser_config.dart'; export 'exception/open_api_parser_exception.dart'; diff --git a/swagger_parser/lib/swagger_parser.dart b/swagger_parser/lib/swagger_parser.dart index 4d1d0a6e..0b9d9f2a 100644 --- a/swagger_parser/lib/swagger_parser.dart +++ b/swagger_parser/lib/swagger_parser.dart @@ -1,6 +1,6 @@ /// Provides generation functions that generates REST clients and data classes from OpenApi definition file /// [swagger_parser](https://pub.dev/packages/swagger_parser) -library swagger_parser; +library; export 'src/config/config_exception.dart'; export 'src/config/swp_config.dart'; diff --git a/swagger_parser/pubspec.yaml b/swagger_parser/pubspec.yaml index 680946bd..6fe0b195 100644 --- a/swagger_parser/pubspec.yaml +++ b/swagger_parser/pubspec.yaml @@ -10,15 +10,15 @@ topics: - api - rest environment: - sdk: ^3.0.0 + sdk: '>=3.2.0 <4.0.0' dependencies: - args: ^2.4.2 + args: ^2.5.0 collection: ^1.18.0 - meta: ^1.11.0 + meta: ^1.10.0 path: ^1.9.0 yaml: ^3.1.2 dev_dependencies: - carapacik_lints: ^1.4.2 + carapacik_lints: ^1.6.0 test: ^1.24.9