# OasDiscriminator

CLASS in `@skmtc/core 0.63.4`

The discriminator of an `OasUnion`. The value of its `propertyName`
property shows which member of the union a value is.

`mapping` and `defaultMapping` name schemas as the document does: with a
pointer (`#/components/schemas/Cat`) or only a name (`Cat`).

## Signature

```ts
import { OasDiscriminator } from '@skmtc/core'

class OasDiscriminator
```

## Constructor

### constructor

```ts
constructor(fields: DiscriminatorFields)
```

## Properties

- `oasType` ('discriminator')
- `propertyName` (string)
- `mapping` (Record<string, string> | undefined)
- `defaultMapping` (string | undefined)
