Skip to content

JSON Schema validation: IF/THEN/ELSE question using $ref #563

Answered by jdesrosiers
dlukacic asked this question in Q&A
Discussion options

You must be logged in to vote

You can use const. const takes any type of value including objects.

  "if": {
    "properties": {
      "ActionProperty": {
        "const": { "$ref": "#/PC-Properties/rb6_CoC__div_process" }
      }
    },
    "required": ["ActionProperty"]
  },

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by dlukacic
Comment options

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

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