validationjsonschemaajv

How to realize in AJV Type definiton oneOf keyword?


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: {... }}

  ]
}

Solution

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