singer_sdk.typing.IntegerType¶
- class singer_sdk.typing.IntegerType[source]¶
- Integer type. - Examples - >>> IntegerType.type_dict {'type': ['integer']} >>> IntegerType().type_dict {'type': ['integer']} >>> IntegerType(allowed_values=[1, 2]).type_dict {'type': ['integer'], 'enum': [1, 2]} >>> IntegerType(minimum=0, maximum=10).type_dict {'type': ['integer'], 'minimum': 0, 'maximum': 10} >>> IntegerType(exclusive_minimum=0, exclusive_maximum=10).type_dict {'type': ['integer'], 'exclusiveMinimum': 0, 'exclusiveMaximum': 10} >>> IntegerType(multiple_of=2).type_dict {'type': ['integer'], '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