How to realize in AJV Type definiton oneOf keyword?

80 Views Asked by At

Does it exist in jtd standard way to realize oneOf behavior like in simple JSON schemas? Should I specify some custom keyword?

This code will throw error

{

  "oneOf": [

    { properties: {... }},
    { properties: {... }}

  ]
}
1

There are 1 best solutions below

0
On BEST ANSWER

I found a solution for this problem indiscriminator form but I think is not direct alternative. Maybe, you can propose something better.