# oneOf with Shared Properties

`GET /oneof-shared-properties`

Tags: `oneOf`

Schema:
```yaml
type: object
properties:
  sharedProp:
    type: string
  oneOfProperty:
    oneOf:
      - type: object
        properties:
          specificPropA:
            type: string
      - type: object
        properties:
          specificPropB:
            type: number
```

## Responses

### 200

Successful response

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

Schema: `object`

- `sharedProp` (string)
- `oneOfProperty` (one of)
  - Exactly one of these options:
    - Option 1 (object)
      A variant carrying `specificPropA`.
      - `oneOfProperty.specificPropA` (string)
    - Option 2 (object)
      A variant carrying `specificPropB`.
      - `oneOfProperty.specificPropB` (number)
