You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nikolas Rimikis
9fac57825b
|
1 year ago | |
---|---|---|
.. | ||
lib | 1 year ago | |
test | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
analysis_options.yaml | 1 year ago | |
build.yaml | 1 year ago | |
pubspec.yaml | 1 year ago | |
pubspec_overrides.yaml | 1 year ago |
README.md
Provides a Dart Build System builder for generating clients from an OpenAPI specifications.
The builder generates code if it find files with an .openapi.json
or .openapi.yaml
extension in the lib directory.
Build configuration
You can configure code generation by setting values in the build.yaml
.
targets:
$default:
builders:
dynamite:
options:
# Options configure how source code is generated.
#
# The following are sensible default values that ignores the schemas for the coverage.
pageWidth: 120
analyzer_ignores:
- camel_case_types
- discarded_futures
- public_member_api_docs
- unreachable_switch_case
coverage_ignores:
- 'const .*\._\(\);'
- 'factory .*\.fromJson\(Map<String, dynamic> json\) => _jsonSerializers\.deserializeWith\(serializer, json\)!;'
- 'Map<String, dynamic> toJson\(\) => _jsonSerializers\.serializeWith\(serializer, this\)! as Map<String, dynamic>;'
- 'static BuiltSet<.*> get values => _\$.*Values;'