You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When providing example json with a value great than Integer/MAX_VALUE, it should generate a long field in Java #971
On Tue, Mar 24, 2020, 4:12 PM Phillip ***@***.***> wrote:
@muka <https://github.com/muka> but wouldn't that change all integers to
long?
That's why I wrote detected when there is an integer higher than
java.lang.Integer#MAX_VALUE use long instead.
Also based on the documentation snippet, I am not providing a schema, but
a JSON directly. Parameter makes absolutely sense for schemas ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#971 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHZKVIJX2EFDAYRDUPERX3RJDEW3ANCNFSM4HGOQ64A>
.
changed the title [-]When providing an json with a long it generates an int[/-][+]When providing example json with a value great than Integer/MAX_VALUE, it should generate a long field in Java[/+]on Apr 2, 2021
Activity
muka commentedon Mar 24, 2020
From the command line
Loki-Afro commentedon Mar 24, 2020
@muka but wouldn't that change all integers to long?
That's why I wrote
detectedwhen there is an integer higher thanjava.lang.Integer#MAX_VALUEuse long instead.Also based on the documentation snippet, I am not providing a schema, but a JSON directly. Parameter makes absolutely sense for schemas ;)
muka commentedon Mar 24, 2020
[-]When providing an json with a long it generates an int[/-][+]When providing example json with a value great than Integer/MAX_VALUE, it should generate a long field in Java[/+]Use long type when example JSON has value greater than Integer/MAX_VALUE