Skip to content
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

When the openapi version is changed to 3.1.0 from 3.0.3, integer values are assigned the maximum value. #9816

Open
DenysLiubchenko opened this issue Apr 13, 2024 · 1 comment · May be fixed by #10230

Comments

@DenysLiubchenko
Copy link

DenysLiubchenko commented Apr 13, 2024

Q&A (please complete the following information)

  • OpenAPI version: OpenAPI 3.1.0

Content & configuration

image
image

OpenAPI:

"openapi": "3.1.0",
    "info": {
///
"User": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "format": "int64"
                },
                "username": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "lastName": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "password": {
                    "type": "string"
                },
                "phone": {
                    "type": "string"
                },
                "userStatus": {
                    "type": "integer",
                    "format": "int32",
                    "description": "User Status"
                }
            },

How can we help?

When the openapi version is changed to 3.1.0 from 3.0.3, integer values are assigned the maximum value.
"id": {
"type": "integer",
"format": "int32"
}
and it shows up in ui as 1073741824 instead of 0, as it was before

@java-meow
Copy link

Hey, did you resolve this issue? I encountered the same problem and it confused my collaborators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants