skip to Main Content

Are there any rules for writing JSON Schema field name?

I have a JSON schema with a field name quoted in double quotes and it starts it integer.
But the same schema is not accepted by the big data tools!

If yes then why??

{ "properties": {"5checkSum": true }}

2

Answers


  1. JSON Schema itself has no restrictions on property names. Other tooling may have restrictions, though. They should document such restrictions if they do.

    Login or Signup to reply.
  2. RFC8259 which JSON Schema uses as a normative reference, does not constrain member(property) names beginning with a number

    https://www.rfc-editor.org/rfc/rfc8259.html

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search