s2wsjson.common.number_range
Classes
- class s2wsjson.common.number_range.NumberRange(*, start_of_range: float, end_of_range: float)
-
- classmethod validate_start_of_range(v)
- classmethod validate_values(end_of_range, values) bool
- classmethod validate_start_end_order(values)
- __init__(**kwargs) None
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- dict(**kwargs) DictStrAny
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
- json(**kwargs) unicode
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
- parse_raw(**kwargs) Model
- start_of_range: float
- end_of_range: float