Class OpenApiFluentValidationRule
Inheritance
System.Object
OpenApiFluentValidationRule
Namespace: FunctionMonkey.FluentValidation.OpenApi
Assembly: FunctionMonkey.FluentValidation.dll
Syntax
public class OpenApiFluentValidationRule : object
Constructors
| Improve this Doc View SourceOpenApiFluentValidationRule(String)
Creates new instance of OpenApiFluentValidationRule.
Declaration
public OpenApiFluentValidationRule(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Rule name. |
Properties
| Improve this Doc View SourceApply
Modify Swagger schema action.
Declaration
public Action<OpenApiFluentValidationRuleContext> Apply { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<OpenApiFluentValidationRuleContext> |
Matches
Predicate to match property validator.
Declaration
public Func<IPropertyValidator, bool> Matches { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<IPropertyValidator, System.Boolean> |
Name
Rule name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |