DeriveUnionAttributeType
PackageReified.Schema
Marks a discriminated union for generated Schema support. The parameterless form uses the
recommended internal
type discriminator; named properties select explicit adjacent or external
compatibility representations. General-union fields must be named.Specification
Kind
Type
Members
7
Examples
0
``.ctor``Signature
DeriveUnionAttribute()
``.ctor``Signature
DeriveUnionAttribute(discriminator)
PayloadStyleSignature
this.PayloadStyle
RepresentationSignature
this.Representation
DiscriminatorSignature
this.Discriminator
Summary
| Name | Signature | Synopsis |
|---|---|---|
| ``.ctor`` | DeriveUnionAttribute() | No description available. |
| ``.ctor`` | DeriveUnionAttribute(discriminator) | No description available. |
| PayloadStyle | this.PayloadStyle | No description available. |
| Representation | this.Representation | No description available. |
| Discriminator | this.Discriminator | No description available. |
| PayloadField | this.PayloadField | No description available. |
| UnwrapFieldless | this.UnwrapFieldless | No description available. |
Parameters
| Name | Type | Description |
|---|---|---|
| discriminator | string |
Returns
DeriveUnionAttribute