Closed alexpyc closed 5 months ago
The above issue is gone when I was resolving another issue in my work. Related issue: https://github.com/gibahjoe/openapi-generator-dart/issues/35
The solution now works for me is to specify type mapping for double as num:
typeMappings:{'double':'num'}
Not sure how it interacts with the issue I posted here, but it works for me now
Glad to hear its resolved even if by accident. :)
Description of the bug
The type of value is
num
, however thestatic const
constructors are all with String, i.e.0
or1
Steps to reproduce
Define a type with enum number
Enum with type integer does not have similar issue
Expected behavior
Code generated does not have issue in syntax
Logs
No response
Screenshots
No response
Platform
Linux
Library version
4.13.1
Flutter version
3.10.6
Flutter channel
stable
Additional context
No response