Class Input
- Namespace
- Styra.Opa.OpenApi.Models.Components
- Assembly
- Styra.Opa.dll
Arbitrary JSON used within your policies by accessing input
[JsonConverter(typeof(Input.InputConverter))]
public class Input
- Inheritance
-
Input
- Inherited Members
Constructors
Input(InputType)
public Input(InputType type)
Parameters
type
InputType
Properties
ArrayOfAny
public List<object>? ArrayOfAny { get; set; }
Property Value
Boolean
public bool? Boolean { get; set; }
Property Value
- bool?
MapOfAny
public Dictionary<string, object>? MapOfAny { get; set; }
Property Value
Number
public double? Number { get; set; }
Property Value
Str
public string? Str { get; set; }
Property Value
Type
public InputType Type { get; set; }
Property Value
Methods
CreateArrayOfAny(List<object>)
public static Input CreateArrayOfAny(List<object> arrayOfAny)
Parameters
Returns
CreateBoolean(bool)
public static Input CreateBoolean(bool boolean)
Parameters
boolean
bool
Returns
CreateMapOfAny(Dictionary<string, object>)
public static Input CreateMapOfAny(Dictionary<string, object> mapOfAny)
Parameters
mapOfAny
Dictionary<string, object>
Returns
CreateNull()
public static Input CreateNull()
Returns
CreateNumber(double)
public static Input CreateNumber(double number)
Parameters
number
double
Returns
CreateStr(string)
public static Input CreateStr(string str)
Parameters
str
string