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 Open
Declaration
public OpenApiFluentValidationRule(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
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<Open |
Matches
Predicate to match property validator.
Declaration
public Func<IPropertyValidator, bool> Matches { get; set; }
Property Value
Type | Description |
---|---|
Func<IProperty |
Name
Rule name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |