JSON Schema Template and JSON Editor
The only way to enforce this (until appareance of jsonschema draft 5) is to use the enum as a discriminator. You can find an example in How to use dependencies in JSON schema (draft-04)
The only way to enforce this (until appareance of jsonschema draft 5) is to use the enum as a discriminator. You can find an example in How to use dependencies in JSON schema (draft-04)