Is “if-then-else” supported in schema validation?

Hi,

Is “if-then-else” introduced in Draft 07 supported by MongoDB? My first attempt failed.

https://json-schema.org/understanding-json-schema/reference/conditionals.html#if-then-else

Thank you,
PJ

1 Like

MongoDB supports draft 4 of JSON Schema, including core specification and validation specification, with some differences. For details, see Extensions and Omissions.

if-then-else is draft-07