flexmeasures.api.common.schemas.utils

Functions

flexmeasures.api.common.schemas.utils.make_openapi_compatible(schema_cls: Type[Schema]) Type[Schema]

Create an OpenAPI-compatible version of a Marshmallow schema.

  • Drops custom __init__ args from the original schema

  • Replaces custom fields (like VariableQuantityField) with String