ska_oso_pdm.schemas.shared

The schemas module defines Marshmallow schemas that are shared by various other serialisation schemas.

class UpperCasedField(*args, **kwargs)[source]

Field that serializes to an upper-case string and deserializes to a lower-case string.

class NestedDict(nested, key, *args, **kwargs)[source]

Field that serialises a list to a dict, with the specified attribute acting as key.