0

I have the following json schema. My plan is to set the value of notifyApprover to true or false depending on the value of AutoApprove. How can i do this ? I am new to JSON schemas.

{
  "type": "object",
  "title": "Comment",
  "properties": {
    "AutoApprove": {
      "title": "Auto Approve",
      "type": "boolean"     
    },
      "notifyApprover": {
      "title": "Notify Approver",
      "type": "boolean"
    }
  }
}

I found this which is helpful, just not sure how to implement it for my requirements.

Bisoux
  • 532
  • 6
  • 18
  • What have you tried so far? If you show us your best attempt, we can give you an answer that addresses where you went wrong rather than just giving you the answer. – Jason Desrosiers Mar 29 '21 at 18:13
  • 2
    Also, you might find https://stackoverflow.com/questions/38717933/jsonschema-attribute-conditionally-required/38781027#38781027 to be a valuable reference. – Jason Desrosiers Mar 29 '21 at 18:14

0 Answers0