singer_sdk.typing.NumberType

class singer_sdk.typing.NumberType[source]

Number type.

Examples

>>> NumberType.type_dict
{'type': ['number']}
>>> NumberType().type_dict
{'type': ['number']}
>>> NumberType(allowed_values=[1.0, 2.0]).type_dict
{'type': ['number'], 'enum': [1.0, 2.0]}
>>> NumberType(minimum=0, maximum=10).type_dict
{'type': ['number'], 'minimum': 0, 'maximum': 10}
>>> NumberType(exclusive_minimum=0, exclusive_maximum=10).type_dict
{'type': ['number'], 'exclusiveMinimum': 0, 'exclusiveMaximum': 10}
>>> NumberType(multiple_of=2).type_dict
{'type': ['number'], 'multipleOf': 2}
__init__(*, minimum=None, maximum=None, exclusive_minimum=None, exclusive_maximum=None, multiple_of=None, **kwargs)[source]

Initialize IntegerType.

Parameters:
Return type:

None