OpenApiSchemaRules.ValidateChildSchemaAgainstDiscriminator Method
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.
Caution
This method will be made private in future versions.
Validates the property name in the discriminator against the ones present in the children schema
[System.ComponentModel.Browsable(false)]
[System.Obsolete("This method will be made private in future versions.")]
public static bool ValidateChildSchemaAgainstDiscriminator(Microsoft.OpenApi.IOpenApiSchema schema, string? discriminatorName);
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("This method will be made private in future versions.")>]
static member ValidateChildSchemaAgainstDiscriminator : Microsoft.OpenApi.IOpenApiSchema * string -> bool
Public Shared Function ValidateChildSchemaAgainstDiscriminator (schema As IOpenApiSchema, discriminatorName As String) As Boolean
Parameters
- schema
- IOpenApiSchema
The parent schema.
- discriminatorName
- String
Adds support for polymorphism. The discriminator is an object name that is used to differentiate between other schemas which may satisfy the payload description.
Returns
- Attributes