-
Notifications
You must be signed in to change notification settings - Fork 273
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
added ipv4 and ipv6 validation #843
Conversation
Signed-off-by: msivasubramaniaan <[email protected]>
When I have something like : {
"type": "array",
"items": {
"type": "string",
"format": "ipv6"
}
} [
"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
] and associate the schema with the file, one of the entires doesn't validate. Update: This is definitely a bug. In fact the root cause is the regular expression used for the ipv4/ipv6 patterns. You've included a flag for your particular pattern that will results in some unpredictable behaviour. |
Signed-off-by: msivasubramaniaan <[email protected]>
@rgrunber |
Signed-off-by: msivasubramaniaan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, so once the last comments are addressed, I thin this is good to squash + merge.
Signed-off-by: msivasubramaniaan <[email protected]>
Signed-off-by: msivasubramaniaan [email protected]
The existing PR has some issues due to my local reabase, Hence created a new one
What does this PR do?
Added IPv4 and IPv6 format validation on parser
What issues does this PR fix or reference?
redhat-developer/vscode-yaml#832
Is it tested? How?
Yes added UT