google_api_discovery v0.3.0 GoogleApi.Discovery.V1.Model.JsonSchemaVariant View Source
In a variant data type, the value of one property is used to determine how to interpret the entire entity. Its value must exist in a map of descriminant values to schema names.
Attributes
- discriminant (String.t): The name of the type discriminant property. Defaults to
nil
. - map (list(GoogleApi.Discovery.V1.Model.JsonSchemaVariantMap.t)): The map of discriminant value to schema to use for parsing.. Defaults to
nil
.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GoogleApi.Discovery.V1.Model.JsonSchemaVariant{
discriminant: String.t(),
map: [GoogleApi.Discovery.V1.Model.JsonSchemaVariantMap.t()]
}
t() :: %GoogleApi.Discovery.V1.Model.JsonSchemaVariant{ discriminant: String.t(), map: [GoogleApi.Discovery.V1.Model.JsonSchemaVariantMap.t()] }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.