-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Query Parameters of type integer in format int64 seem to create a broken spring API #1226
Comments
@jbumueller is it correct to say that the defaultValue must be a string? In other words, the following is still incorrect:
|
Well the default value can be a String but it must be parsable for |
I experienced the same behaviour and viewing my API in swagger-ui gives my this exception:
I asked myself why the are any suffixes defined at Lines 779 to 796 in 92d60b6
I do not see in https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md whether this is required (and specified). Can we remove those suffixes safely? Or (in my case) should be swagger adopted to be able to parse default values using those suffixes? |
Is there any workaround for this issue? |
Description
Created a API Spec with a query parameter of type integer, with format int64 which results to Long in Java. Leads to a broken spring Api with thr following signature:
10l should be 10 instead, otherwise a numberFormatException occurs.
openapi-generator version
On the Master (3.3.0)
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Suggest a fix/enhancement
Generate
instead of
The text was updated successfully, but these errors were encountered: