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:
minimum (int | None) – Minimum numeric value. See the JSON Schema reference for details.
maximum (int | None) – Maximum numeric value. JSON Schema reference for details.
exclusive_minimum (int | None) – Exclusive minimum numeric value. JSON Schema reference for details.
exclusive_maximum (int | None) – Exclusive maximum numeric value. See the JSON Schema reference for details.
multiple_of (int | None) – A number that the value must be a multiple of. See the JSON Schema reference for details.
**kwargs (Any) – Additional keyword arguments to pass to the parent class.
- Return type:
None