Class Utilities
- Namespace
- Styra.Opa.OpenApi.Utils
- Assembly
- Styra.Opa.dll
- Inheritance
-
Utilities
- Inherited Members
-
Methods
GetDefaultJsonDeserializerSettings()
public static JsonSerializerSettings GetDefaultJsonDeserializerSettings()
Returns
- JsonSerializerSettings
GetDefaultJsonDeserializers()
public static JsonConverter[] GetDefaultJsonDeserializers()
Returns
- JsonConverter[]
GetDefaultJsonSerializerSettings()
public static JsonSerializerSettings GetDefaultJsonSerializerSettings()
Returns
- JsonSerializerSettings
GetDefaultJsonSerializers()
public static JsonConverter[] GetDefaultJsonSerializers()
Returns
- JsonConverter[]
GetJsonDeserializers(Type)
public static JsonConverter[] GetJsonDeserializers(Type type)
Parameters
type
Type
Returns
- JsonConverter[]
GetJsonSerializers(Type, string)
public static JsonConverter[] GetJsonSerializers(Type type, string format = "")
Parameters
type
Type
format
string
Returns
- JsonConverter[]
IsClass(object?)
public static bool IsClass(object? o)
Parameters
o
object
Returns
- bool
IsContentTypeMatch(string, string?)
public static bool IsContentTypeMatch(string expected, string? actual)
Parameters
expected
string
actual
string
Returns
- bool
IsDate(object?)
public static bool IsDate(object? obj)
Parameters
obj
object
Returns
- bool
IsDictionary(object?)
public static bool IsDictionary(object? o)
Parameters
o
object
Returns
- bool
IsEnum(object?)
public static bool IsEnum(object? obj)
Parameters
obj
object
Returns
- bool
IsList(object?)
public static bool IsList(object? o)
Parameters
o
object
Returns
- bool
IsPrimitive(object?)
public static bool IsPrimitive(object? obj)
Parameters
obj
object
Returns
- bool
IsSameOrSubclass(Type, Type)
public static bool IsSameOrSubclass(Type potentialBase, Type potentialDescendant)
Parameters
potentialBase
Type
potentialDescendant
Type
Returns
- bool
IsString(object?)
public static bool IsString(object? obj)
Parameters
obj
object
Returns
- bool
PrefixBearer(string)
public static string PrefixBearer(string authHeaderValue)
Parameters
authHeaderValue
string
Returns
- string
RemoveSuffix(string, string)
public static string RemoveSuffix(string inputString, string suffix)
Parameters
inputString
string
suffix
string
Returns
- string
SerializeJSON(object, string)
public static string SerializeJSON(object obj, string format = "")
Parameters
obj
object
format
string
Returns
- string
TemplateUrl(string, Dictionary<string, string>)
public static string TemplateUrl(string template, Dictionary<string, string> paramDict)
Parameters
template
string
paramDict
Dictionary<string, string>
Returns
- string
ToString(object?)
public static string ToString(object? obj)
Parameters
obj
object
Returns
- string
ValueToString(object?)
public static string ValueToString(object? value)
Parameters
value
object
Returns
- string