Class OpenApiFluentValidationHelper
Inheritance
System.Object
OpenApiFluentValidationHelper
Assembly: FunctionMonkey.FluentValidation.dll
Syntax
public static class OpenApiFluentValidationHelper : object
Methods
|
Improve this Doc
View Source
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
|
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)
Declaration
public static int NumericToInt(this object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Type |
Description |
System.Int32 |
|