vapi metadata metamodel: constant value

The constant_value structure contains the metamodel information of the constant element.

Representation:

{
    "category""PRIMITIVE",
    "list_value"[
        {
            "boolean_value"true,
            "double_value"1.5,
            "long_value"1,
            "string_value""string",
            "type""BOOLEAN"
        },
        {
            "boolean_value"true,
            "double_value"1.5,
            "long_value"1,
            "string_value""string",
            "type""BOOLEAN"
        }
    ],
    "primitive_value"{
        "boolean_value"true,
        "double_value"1.5,
        "long_value"1,
        "string_value""string",
        "type""BOOLEAN"
    }
}

Attributes:

Name Type Description
Required
category string Category of the type of constant value.

Defines enumeration values for the valid kinds of values. Value is one of:
PRIMITIVE: Indicates the type of constant value is primitive.
LIST: Indicates the type of constant value is a list.

Optional
primitive_value primitive_value Primitive value of the constant element.

Optional. It is only relevant when category has value PRIMITIVE. This field is optional and it is only relevant when the value of category is PRIMITIVE.

list_value primitive_value[] List value of the constant element.

Optional. It is only relevant when category has value LIST. This field is optional and it is only relevant when the value of category is LIST.