swagger_to_dart 4.0.0 copy "swagger_to_dart: ^4.0.0" to clipboard
swagger_to_dart: ^4.0.0 copied to clipboard

Convert Swagger to Dart using freezed and retrofit support only 3.1.0 openApi

140/ 160
pub points
1.06k
downloads

We analyzed this package 5 days ago, and awarded it 140 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

198 out of 436 API elements (45.4 %) have documentation comments.

Some symbols that are missing documentation: swagger_to_dart, swagger_to_dart.ApiClientConfig, swagger_to_dart.ApiClientConfig.ApiClientConfig.fromJson, swagger_to_dart.ApiClientConfig.ApiClientConfig.new, swagger_to_dart.ApiClientConfig.baseApiClientClassName.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:swagger_to_dart/swagger_to_dart.dart that imports:
  • package:swagger_to_dart/src/swagger_to_dart_base.dart that imports:
  • package:swagger_to_dart/src/generator/generator.dart that imports:
  • package:swagger_to_dart/src/generator/model/model.dart that imports:
  • package:swagger_to_dart/src/generator/model/strategy/strategy.dart that imports:
  • package:swagger_to_dart/src/generator/model/strategy/model_generator_strategy.dart that imports:
  • package:swagger_to_dart/src/config/generation_context.dart that imports:
  • dart:io
Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 28 issues. Showing the first 2:

WARNING: The declaration '_$SwaggerToDartYamlFieldMap' isn't referenced.

lib/src/config/swagger_to_dart_yaml.g.dart:15:7

   ╷
15 │ const _$SwaggerToDartYamlFieldMap = <String, String>{
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/config/swagger_to_dart_yaml.g.dart

WARNING: The declaration '_$SwaggerToDartYamlJsonKeys' isn't referenced.

lib/src/config/swagger_to_dart_yaml.g.dart:19:22

   ╷
19 │ abstract final class _$SwaggerToDartYamlJsonKeys {
   │                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/config/swagger_to_dart_yaml.g.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
args ^2.7.0 2.7.0 2.7.0
code_builder ^4.10.1 4.11.0 4.11.0
collection ^1.18.0 1.19.1 1.19.1
dart_style ^3.0.1 3.1.3 3.1.3
dio ^5.4.0 5.9.0 5.9.0
freezed_annotation ^3.0.0 3.1.0 3.1.0
json_annotation ^4.9.0 4.9.0 4.9.0
logger ^2.5.0 2.6.2 2.6.2
path ^1.9.1 1.9.1 1.9.1
pubspec_parse ^1.5.0 1.5.0 1.5.0
retrofit ^4.4.2 4.9.1 4.9.1
yaml ^3.1.2 3.1.3 3.1.3
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 92.0.0 92.0.0
analyzer - 9.0.0 9.0.0
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
built_collection - 5.1.1 5.1.1
built_value - 8.12.1 8.12.1
checked_yaml - 2.0.4 2.0.4
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
dio_web_adapter - 2.1.1 2.1.1
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
glob - 2.1.3 2.1.3
http_parser - 4.1.2 4.1.2
matcher - 0.12.18 0.12.18
meta - 1.17.0 1.17.0
mime - 2.0.0 2.0.0
package_config - 2.2.0 2.2.0
pub_semver - 2.2.0 2.2.0
source_span - 1.10.1 1.10.1
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.8 0.7.8
typed_data - 1.4.0 1.4.0
watcher - 1.1.4 1.1.4
web - 1.1.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.3, Dart 3.10.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
18
likes
140
points
1.06k
downloads

Publisher

verified publishermatheer.com

Weekly Downloads

Convert Swagger to Dart using freezed and retrofit support only 3.1.0 openApi

Repository (GitHub)
View/report issues

Topics

#swagger #openapi #generator #freezed #retrofit

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

args, code_builder, collection, dart_style, dio, freezed_annotation, json_annotation, logger, path, pubspec_parse, retrofit, yaml

More

Packages that depend on swagger_to_dart