singer_sdk.typing.Constant

class singer_sdk.typing.Constant[source]

A constant property.

A property that is always the same value.

Examples

>>> t = Constant("foo")
>>> print(t.to_json(indent=2))
{
    "const": "foo"
}
__init__(value)[source]

Initialize Constant.

Parameters:

value (str | int | float | bool | list | dict | None) – Value of the constant.

Return type:

None

property type_dict: dict[source]

Get type dictionary.

Returns:

A dictionary describing the type.