Show / Hide Table of Contents

Class OpenApiFluentValidationRule

Inheritance
System.Object
OpenApiFluentValidationRule
Namespace: FunctionMonkey.FluentValidation.OpenApi
Assembly: FunctionMonkey.FluentValidation.dll
Syntax
public class OpenApiFluentValidationRule : object

Constructors

| Improve this Doc View Source

OpenApiFluentValidationRule(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 Source

Apply

Modify Swagger schema action.

Declaration
public Action<OpenApiFluentValidationRuleContext> Apply { get; set; }
Property Value
Type Description
Action<OpenApiFluentValidationRuleContext>
| Improve this Doc View Source

Matches

Predicate to match property validator.

Declaration
public Func<IPropertyValidator, bool> Matches { get; set; }
Property Value
Type Description
Func<IPropertyValidator, System.Boolean>
| Improve this Doc View Source

Name

Rule name.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Extension Methods

OpenApiFluentValidationHelper.IsNumeric(Object)
OpenApiFluentValidationHelper.NumericToInt(Object)
OpenApiFluentValidationHelper.NumericToDouble(Object)
OpenApiFluentValidationHelper.NumericToDecimal(Object)
  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall