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 }}
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.
When I attempt to validate
{
"intprop" : 3.14
}
against the schema:
{
"type" : "object",
"properties" : {
"intprop" : {
"type" : "integer",
"format" : "int32"
}
}
I receive back:
[ {
"schemaPath" : "#/properties/intprop",
"errors" : { },
"keyword" : "type",
"msgs" : [ "Wrong type. Expected integer, was number." ],
"value" : -3.14,
"instancePath" : "/intprop"
} ]
It is correct.
However, when I validate the value:
{
"intprop" : -1.7976931348623157E+308
}
against the same schema, there is no validation error trapped. I expected it to be be the same as for 3.14 value.
The text was updated successfully, but these errors were encountered:
When I attempt to validate
{
"intprop" : 3.14
}
against the schema:
{
"type" : "object",
"properties" : {
"intprop" : {
"type" : "integer",
"format" : "int32"
}
}
I receive back:
[ {
"schemaPath" : "#/properties/intprop",
"errors" : { },
"keyword" : "type",
"msgs" : [ "Wrong type. Expected integer, was number." ],
"value" : -3.14,
"instancePath" : "/intprop"
} ]
It is correct.
However, when I validate the value:
{
"intprop" : -1.7976931348623157E+308
}
against the same schema, there is no validation error trapped. I expected it to be be the same as for 3.14 value.
The text was updated successfully, but these errors were encountered: