Skip to content

fix: use "number" instead of "double" for format #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eseidel
Copy link
Contributor

@eseidel eseidel commented Apr 17, 2025

The server sends down 'condition: 1' even though the format is listed as 'double' which at least the Dart OpenAPI generator treats very strictly as a floating point which '1' does not parse as (it parses as an integer). OpenAPI does seem to have distinct types for "integer", "number" and "double", since the server isn't always including the dot, I guess this type should be "number". At least that would fix the current OpenAPI dart generator. If you believe the open api generator is at fault, I'm open to fixing that instead.

The server sends down 'condition: 1' even though the format is
listed as 'double' which at least the Dart OpenAPI generator treats
very strictly as a floating point which '1' does not parse as (it parses
as an integer).  OpenAPI does seem to have distinct types for
"integer", "number" and "double", since the server isn't always including
the dot, I guess this type should be "number".  At least that would
fix the current OpenAPI dart generator. If you believe the open api
generator is at fault, I'm open to fixing that instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant