Skip to content
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

Field names can't be one character long. #717

Closed
ghost opened this issue Jul 20, 2018 · 0 comments
Closed

Field names can't be one character long. #717

ghost opened this issue Jul 20, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 20, 2018

Case

Bug

Issue

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]$.

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?

@ghost ghost mentioned this issue Jul 21, 2018
1 task
@pubkey pubkey closed this as completed in 6acd1fd Jul 31, 2018
pubkey added a commit that referenced this issue Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants