OpenApiSchemaRules.TraverseSchemaElements Method

Definition

Caution

This method will be made private in future versions.

Traverses the schema elements and checks whether the schema contains the discriminator.

[System.ComponentModel.Browsable(false)]
[System.Obsolete("This method will be made private in future versions.")]
public static bool TraverseSchemaElements(string discriminatorName, System.Collections.Generic.IList<Microsoft.OpenApi.IOpenApiSchema>? childSchema);
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("This method will be made private in future versions.")>]
static member TraverseSchemaElements : string * System.Collections.Generic.IList<Microsoft.OpenApi.IOpenApiSchema> -> bool
Public Shared Function TraverseSchemaElements (discriminatorName As String, childSchema As IList(Of IOpenApiSchema)) As Boolean

Parameters

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.

childSchema
IList<IOpenApiSchema>

The child schema.

Returns

Attributes

Applies to