JsonSchema definition for either or value

170 Views Asked by At

I am writing a JSON schema for helm chart values.yaml wherein the yaml file is as follows:

accessID: "" // user set this value when installing individual chart
global:
  accessID: "" // user set this when installing the parent which this chart is part of

How can I write JSON schema (version 7) to validate either one of this should have a non empty string.

1

There are 1 best solutions below