Forum Discussion
kurtosys
New Contributor
see also my comment on github:
RonRatovsky
6 years agoModerator
Unfortunately, there's no way to define that.
You can say that the top-level object can have at most 1 property, but that won't allow to add 'ext', or 2 properties, but that can also allow 'Case T' and 'Case X' to co-exist. Under 'ext', each case can exist only once as a key as they have to be unique, but you can't force it to not be the same case as the root level.
- kurtosys6 years agoNew Contributor
Too bad... any plans to support something like ajv or so (which makes some more logic possible)?
- RonRatovsky6 years agoModerator
In future versions of the spec (which is controlled by the OAI, not SmartBear), there may be support for newer versions of JSON Schema, which might be able to define such additional logic.
Related Content
- 2 years agovericomms