OpenApiDiscriminator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Discriminator object.
public class OpenApiDiscriminator : Microsoft.OpenApi.Interfaces.IOpenApiSerializable
type OpenApiDiscriminator = class
interface IOpenApiSerializable
interface IOpenApiElement
Public Class OpenApiDiscriminator
Implements IOpenApiSerializable
- Inheritance
-
OpenApiDiscriminator
- Implements
Constructors
OpenApiDiscriminator() |
Parameter-less constructor |
OpenApiDiscriminator(OpenApiDiscriminator) |
Initializes a copy of an OpenApiDiscriminator instance |
Properties
Mapping |
An object to hold mappings between payload values and schema names or references. |
PropertyName |
REQUIRED. The name of the property in the payload that will hold the discriminator value. |
Methods
SerializeAsV2(IOpenApiWriter) |
Serialize OpenApiDiscriminator to Open Api v2.0 |
SerializeAsV3(IOpenApiWriter) |
Serialize OpenApiDiscriminator to Open Api v3.0 |
Extension Methods
Validate(IOpenApiElement, ValidationRuleSet) |
Validate element and all child elements |