Schemas
CLASS
@skmtc/core 0.63.4OasDiscriminator
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 OasDiscriminatorConstructor
constructor
constructor(fields: DiscriminatorFields)Properties
oasType, 'discriminator'
propertyName, string
mapping, Record<string, string> | undefined
defaultMapping, string | undefined