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

Underscores stripped from object property keys in schema #5

Closed
j616 opened this issue Apr 17, 2018 · 1 comment
Closed

Underscores stripped from object property keys in schema #5

j616 opened this issue Apr 17, 2018 · 1 comment

Comments

@j616
Copy link

j616 commented Apr 17, 2018

I have a schema with something similar to the following in it.

{
 "$schema": "http://json-schema.org/draft-04/schema#",
 "type": "object",
 "properties": {
  "object_key": {
   "title": "My Object Entry",
   "description": "An object entry that must always have a value of 'foo'.",
   "type": "string",
   "enum":[
    "foo"
   ]
  }
}

This will match against a key called objectkey but reject one called object_key. I'm also seeing a schema with a key @_ns match against a document containing ns but not @_ns.

For the same reason, the examples at https://spacetelescope.github.io/understanding-json-schema/reference/object.html#properties will not work because of the property street_name.

@horejsek
Copy link
Owner

Thanks for report, will be fixed in next version!

horejsek added a commit that referenced this issue Apr 24, 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

2 participants