Esempio n. 1
0
class ListsUserSchema(object):
    """A docstring to prevent auto generated docstring"""

    pagination: PaginationSchema
    item_nb: int = number_field(minimum=0)
    items: typing.List[UserSchema] = nested_field(
        only=["id", "username", "display_name", "company"])
Esempio n. 2
0
class RunSchema(object):
    sample: typing.List[SampleSchema] = nested_field(exclude=["runs"])
Esempio n. 3
0
class SampleSchema(object):
    count: int
    runs: typing.List["RunSchema"] = nested_field(exclude=["sample"])
Esempio n. 4
0
class WorldMapLegendModel:
    all_types: typing.List[WorldTileTypeModel]
    default_type: typing.Optional[WorldTileTypeModel] = nested_field(
        default=None)