We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug
I'm trying to define a JSON schema with a type like:
{ type: 'object', properties: { point: { type: 'object', properties: { x: { type: 'integer' }, y: { type: 'integer' } } } } }
It fails, though, because x and y don't match the regex ^[a-zA-Z][[a-zA-Z0-9_]*]?[a-zA-Z0-9]$.
x
y
^[a-zA-Z][[a-zA-Z0-9_]*]?[a-zA-Z0-9]$
Can it be changed to something like ^[a-zA-Z](?:[[a-zA-Z0-9_]*]?[a-zA-Z0-9])?$ so only the first letter is mandatory?
^[a-zA-Z](?:[[a-zA-Z0-9_]*]?[a-zA-Z0-9])?$
The text was updated successfully, but these errors were encountered:
6acd1fd
ADD(changelog) #719 #720 #717
3a124cb
No branches or pull requests
Case
Bug
Issue
I'm trying to define a JSON schema with a type like:
It fails, though, because
x
andy
don't match the regex^[a-zA-Z][[a-zA-Z0-9_]*]?[a-zA-Z0-9]$
.Can it be changed to something like
^[a-zA-Z](?:[[a-zA-Z0-9_]*]?[a-zA-Z0-9])?$
so only the first letter is mandatory?The text was updated successfully, but these errors were encountered: