# Discriminator with Nested Schemas without Mapping

`GET /discriminator-nested`

Tags: `discriminator`

Schema:
```yaml
type: object
discriminator: 
  propertyName: type
properties:
  type:
    type: string
oneOf:
  - $ref: '#/components/schemas/NestedTypeA'
  - $ref: '#/components/schemas/NestedTypeB'
```

## Responses

### 200

Successful response

#### Content type: `application/json`

Schema: `one of`

- Discriminator: `type`
- Exactly one of these options:
  - Option 1: NestedTypeA (object)
    A variant whose payload nests an object under `nestedA`.
    - `type` (string, required, possible values: `nestedTypeA`)
    - `nestedA` (object)
      - `nestedA.propA1` (string)
      - `nestedA.propA2` (number)
  - Option 2: NestedTypeB (object)
    A variant whose payload nests an object under `nestedB`.
    - `type` (string, required, possible values: `nestedTypeB`)
    - `nestedB` (object)
      - `nestedB.propB1` (string)
      - `nestedB.propB2` (boolean)
