Open domesticmouse opened 4 months ago
Hi, looks like, this has been fixed in 5.0.3
version, but for some reason this hasn't been published in official registry.
You can edit your pubspec.yaml
and install new version manually:
dev_dependencies:
...
openapi_generator: ^5.0.2
openapi_generator_cli: ^5.0.2
openapi_generator_annotations: ^5.0.2
dependency_overrides:
analyzer: ^6.4.1
meta: ^1.15.0
openapi_generator:
git:
url: https://github.com/gibahjoe/openapi-generator-dart.git
ref: v5.0.3
path: openapi-generator
version: ^5.0.3
openapi_generator_cli:
git:
url: https://github.com/gibahjoe/openapi-generator-dart.git
ref: v5.0.3
path: openapi-generator-cli
version: ^5.0.3
openapi_generator_annotations:
git:
url: https://github.com/gibahjoe/openapi-generator-dart.git
ref: v5.0.3
path: openapi-generator-annotations
version: ^5.0.3
May be override analyzer
and meta
not necessary. I'm not testing this.
not solved
I'm getting the same issue, overriding to 5.0.3 does not solve this issue
Description of the bug
Code generator generates invalid code for an OpenAPI specification
Steps to reproduce
1) Create an api definiton file
salad-api.json
:2) Create the configuration for the code generator:
3) Run the code generator:
Expected behavior
Generate a valid client library.
Logs
Screenshots
No response
Platform
Linux
Library version
5.0.2
Flutter version
3.19.0
Flutter channel
stable
Additional context