ValidationRule<T>(Action<IValidationContext,T>) Constructor

Definition

Initializes a new instance of the ValidationRule class.

public ValidationRule (Action<Microsoft.OpenApi.Validations.IValidationContext,T> validate);
new Microsoft.OpenApi.Validations.ValidationRule<'T (requires 'T :> Microsoft.OpenApi.Interfaces.IOpenApiElement)> : Action<Microsoft.OpenApi.Validations.IValidationContext, 'T (requires 'T :> Microsoft.OpenApi.Interfaces.IOpenApiElement)> -> Microsoft.OpenApi.Validations.ValidationRule<'T (requires 'T :> Microsoft.OpenApi.Interfaces.IOpenApiElement)>
Public Sub New (validate As Action(Of IValidationContext, T))

Parameters

validate
Action<IValidationContext,T>

Action to perform the validation.

Applies to