We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
According to http://json-schema.org/latest/json-schema-validation.html#anchor117 the ipv4 format is an IPv4 address according to the "dotted-quad" ABNF syntax as defined in RFC 2673, section 3.2 [RFC2673].
according to the "dotted-quad" ABNF syntax as defined in RFC 2673, section 3.2 [RFC2673].
The "dotted-quad" ABNF syntax referenced is:
dotted-quad = decbyte "." decbyte "." decbyte "." decbyte decbyte = 1*3DIGIT
The draft4_format_checker incorrectly allows the following values which do not conform to this syntax:
draft4_format_checker
Presumably according to the whims of the platform inet_aton implementation.
inet_aton
The text was updated successfully, but these errors were encountered:
Hey,
Yup, thanks, good catch. Guess it's regex time.
Should be fairly simple, I can probably knock it off certainly before the next release. If you had interest yourself, the way to do that is to add a test to https://github.com/json-schema/JSON-Schema-Test-Suite/blob/develop/tests/draft4/optional/format.json#L61-L77 (which is git subtree'd into this repo).
git subtree
Sorry, something went wrong.
As per the spec, only dotted-quad IPv4 addresses are valid.
1ca7d21
Closes: #149
Thanks!
No branches or pull requests
According to http://json-schema.org/latest/json-schema-validation.html#anchor117 the ipv4 format is an IPv4 address
according to the "dotted-quad" ABNF syntax as defined in RFC 2673, section 3.2 [RFC2673].
The "dotted-quad" ABNF syntax referenced is:
The
draft4_format_checker
incorrectly allows the following values which do not conform to this syntax:Presumably according to the whims of the platform
inet_aton
implementation.The text was updated successfully, but these errors were encountered: