Closed mzdm closed 3 years ago
Hi @mzdm ! Looks like it's easy fix. We will fix it ASAP. (possible today)
Please check 2.0.0-nullsafety.8
@mzdm Also thanks for examples of swagger files. It's really helpful.
Please check 2.0.0-nullsafety.8
Thanks for the fast fix! 💙 I'll try later tomorrow.
Can confirm it was fixed with 2.0.0-nullsafety.8
, thanks!
Swagger/Json file example: https://cloud.ibm.com/apidocs/visual-recognition/visual-recognition-v3.json
This has parameter
AcceptLanguage
which has a name with a dashAccept-Language
This generates:
instead of
enums.$V3ClassifyPostAcceptLanguageMap[Accept - Language]
it should callenums.$V3ClassifyPostAcceptLanguageMap[acceptLanguage]
Thanks for this lib btw. 😍. Saves a lot of time.
deps
``` dependencies: flutter: sdk: flutter chopper: ^4.0.0 dev_dependencies: flutter_test: sdk: flutter build_runner: ^1.12.2 json_annotation: 4.0.1 json_serializable: 4.1.2 swagger_dart_code_generator: ^2.0.0-nullsafety.7+2 chopper_generator: ^4.0.0-nullsafety.1 ```