Skip to content

Understanding of the concept Instance type #265

Answered by handrews
suncpp asked this question in Q&A
Discussion options

You must be logged in to vote

@suncpp "instance type" is an informal term that means the primitive type of the current part of the instance. In the instance:

{
    "foo": 3,
    "bar": "hello"
}
  • The instance type of the whole instance is object
  • The instance type of "foo" is number
  • The instance type of "bar" is string

In the validation specification, some keywords only apply to certain instance types, and are grouped into sections accordingly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@suncpp
Comment options

Answer selected by suncpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants