Skip to content

Numeric string are converting as String in the generated swagger json file #162

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
itsmykairos opened this issue Mar 20, 2025 · 0 comments

Comments

@itsmykairos
Copy link

I could see that the numeric strings are getting converted to numbers in the generated swagger file. Looks like its similar to springfox/springfox#2249

openapi-gradle-plugin = 1.9.0
springboot = 3.4.3

output in the swagger json:

"value":{
  "type": "string",
  "description": "the string value for ID",
  "example": 56000
}
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

No branches or pull requests

1 participant