flexmeasures.data.schemas.assets
Classes
- class flexmeasures.data.schemas.assets.AssetSchema(*args, **kwargs)
Asset schema, with validations.
TODO: deprecate, as it is based on legacy data model. Move some attributes to SensorSchema.
- opts: SchemaOpts = <flask_marshmallow.sqla.SQLAlchemySchemaOpts object>
- class flexmeasures.data.schemas.assets.LatitudeField(*args, **kwargs)
Field that deserializes to a latitude float with max 7 decimal places.
- __init__(*args, **kwargs)
- class flexmeasures.data.schemas.assets.LatitudeLongitudeValidator(*, error: str | None = None)
Validator which succeeds if the value passed has at most 7 decimal places.
- class flexmeasures.data.schemas.assets.LatitudeValidator(*, error: str | None = None, allow_none: bool = False)
Validator which succeeds if the value passed is in the range [-90, 90].