Show / Hide Table of Contents

Class OpenApiFluentValidationHelper

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

Methods

| Improve this Doc View Source

GetValidatorsForMember(IValidator, String)

Returns validators by property name.

Declaration
public static IEnumerable<IPropertyValidator> GetValidatorsForMember(this IValidator validator, string name)
Parameters
Type Name Description
IValidator validator

Validator

System.String name

Property name.

Returns
Type Description
IEnumerable<IPropertyValidator>

enumeration or null.

| Improve this Doc View Source

IsNumeric(Object)

Is supported swagger numeric type.

Declaration
public static bool IsNumeric(this object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

NotNull<TValue>(IEnumerable<TValue>)

Returns not null enumeration.

Declaration
public static IEnumerable<TValue> NotNull<TValue>(this IEnumerable<TValue> collection)
Parameters
Type Name Description
IEnumerable<TValue> collection
Returns
Type Description
IEnumerable<TValue>
Type Parameters
Name Description
TValue
| Improve this Doc View Source

NotNull<TKey, TValue>(Dictionary<TKey, TValue>)

Returns not null dictionary.

Declaration
public static Dictionary<TKey, TValue> NotNull<TKey, TValue>(this Dictionary<TKey, TValue> dictionary)
Parameters
Type Name Description
Dictionary<TKey, TValue> dictionary
Returns
Type Description
Dictionary<TKey, TValue>
Type Parameters
Name Description
TKey
TValue
| Improve this Doc View Source

NumericToDecimal(Object)

Convert numeric to decimal.

Declaration
public static decimal NumericToDecimal(this object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Decimal
| Improve this Doc View Source

NumericToDouble(Object)

Convert numeric to double.

Declaration
public static double NumericToDouble(this object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Double
| Improve this Doc View Source

NumericToInt(Object)

Convert numeric to int.

Declaration
public static int NumericToInt(this object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Int32
  • Improve this Doc
  • View Source
  • 0 Comments
In This Article
  • Methods
    • GetValidatorsForMember(IValidator, String)
    • IsNumeric(Object)
    • NotNull<TValue>(IEnumerable<TValue>)
    • NotNull<TKey, TValue>(Dictionary<TKey, TValue>)
    • NumericToDecimal(Object)
    • NumericToDouble(Object)
    • NumericToInt(Object)
Back to top Copyright © 2018 James Randall