openapi-generator-dart
openapi-generator-dart copied to clipboard
Openapi Generator for Dart/Flutter
### Description of the bug Parsing the following spec produces invalid dart code. The error is, that the class attribute `package_` gets renamed to `package` but this one already exists....
When fetching a input spec via URL it would be great if I could add custom headers. I. E. Authorization headers. This way I could also fetch specs that are...
# Generated code error in file ## Error message: The getter 'field' isn't defined for the type 'List'. Try importing the library that defines 'field', correcting the name to the...
### Description of the bug When using this config: ```dart const _apiLink = 'https://api.tagmine.ca/openapi.yaml'; @Openapi( additionalProperties: DioProperties( pubName: 'tagmine_api', pubDescription: 'OAS generated dart api for tagmine.ca', useEnumExtension: true, sortParamsByRequiredFlag: true,...
### Description of the bug When running `dart run build_runner build --delete-conflicting-outputs -v`, it fails with a [SEVERE] message, but no error message: ``` dart run build_runner build --delete-conflicting-outputs -v...
### Description of the bug Generating the api code for the [tictactoe example](https://learn.openapis.org/examples/tictactoe.yaml) from OPENAPI generates broken code: ```dart class Mark { /// Returns a new [Mark] instance. Mark({ });...
When using the following input: `/session/login: post: tags: - session summary: Endpoint for user-login and getting the session key requestBody: content: application/json: schema: type: object properties: user: type: string pass:...
``` [INFO] Generating build script... [INFO] Generating build script completed, took 319ms [INFO] Precompiling build script...... [WARNING] ../../../../../../.pub-cache/hosted/pub.dev/go_router_builder-1.1.7/lib/src/route_config.dart:94:57: Error: The getter 'element' isn't defined for the class 'InterfaceType'. - 'InterfaceType'...
When receiving JSON: ` [ { "id": 1, "name": "Test", "schedule": { "slots": [ [], [], [], [], [], [], [ { "time_from": "10:30:00", "time_to": "15:45:00" } ] ] }...
Im getting a lot of errors related to this issue: `/// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default...