Skip to main content

Doubly Nested Discriminators (Issue

POST 

/discriminator-doubly-nested

Tests the full scenario from issue #1302 with doubly-nested discriminators:

  • Outer level: allOf with discriminator on "type" selecting TypeA/TypeB/TypeC
  • TypeA: has allOf with its own nested discriminator on "mode"
  • TypeB: has allOf with its own nested discriminator on "mode"
  • TypeC: has discriminator on "mode" at root level (NOT in allOf)

This tests:

  1. Discriminators nested in allOf are properly detected
  2. Inner discriminators work after selecting outer type
  3. TypeC pattern (discriminator at root) still works

Request

Responses

Successful response