vapi metadata metamodel: constant info

The constant_info structure contains metamodel information of the constant elements.

Representation:

{
    "documentation""string",
    "type"{
        "builtin_type""VOID",
        "category""BUILTIN",
        "generic_instantiation"{
            "element_type"{
                "builtin_type""VOID",
                "category""BUILTIN",
                "generic_instantiation"{
                    "generic_type""LIST"
                },
                "user_defined_type"{
                    "resource_id""obj-103",
                    "resource_type""string"
                }
            },
            "generic_type""LIST"
        },
        "user_defined_type"{
            "resource_id""obj-103",
            "resource_type""string"
        }
    },
    "value"{
        "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
type type Type of the constant element.

value constant_value Value of the constant element.

documentation string English language documentation for the constant element. It can contain HTML markup and documentation tags (similar to Javadoc tags).