Skip to content

Commit

Permalink
Analyze fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik committed Jun 6, 2024
1 parent 88d9f91 commit a58a24e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 30 deletions.
22 changes: 9 additions & 13 deletions swagger_parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion swagger_parser/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 9 additions & 9 deletions swagger_parser/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion swagger_parser/lib/src/parser/parser/open_api_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ class OpenApiParser {
// Add to support this:
// anyOf:
// - type: array
// - tupe: null
// - type: null
// items:
// type: string
final nMap = {...map}
Expand Down
2 changes: 1 addition & 1 deletion swagger_parser/lib/src/parser/swagger_parser_core.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion swagger_parser/lib/swagger_parser.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
8 changes: 4 additions & 4 deletions swagger_parser/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a58a24e

Please sign in to comment.