Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Double.Min|MaxValue validation against integer property type #94

Closed
avkonst opened this issue Feb 8, 2017 · 1 comment
Closed

Double.Min|MaxValue validation against integer property type #94

avkonst opened this issue Feb 8, 2017 · 1 comment

Comments

@avkonst
Copy link

avkonst commented Feb 8, 2017

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.

@edgarmueller
Copy link
Contributor

Also fixed with 0.8.8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants