Docs@skmtc/core

Schemas

CLASS

OasDiscriminator

@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

import { OasDiscriminator } from '@skmtc/core'

class OasDiscriminator

Constructor

constructor

constructor(fields: DiscriminatorFields)

Properties

oasType, 'discriminator'
propertyName, string
mapping, Record<string, string> | undefined
defaultMapping, string | undefined