Skip to content

json_models#

Organization#

Bases: Base

Source code in tests/unit/apps/core/api/json_models.py
class Organization(models.Base):
    pref_label = fields.DictField(required=True)

Person#

Bases: Base

Source code in tests/unit/apps/core/api/json_models.py
class Person(models.Base):
    name = fields.StringField(required=True)

DatasetActor#

Bases: Base

Source code in tests/unit/apps/core/api/json_models.py
class DatasetActor(models.Base):
    roles = fields.ListField(required=True, items_types=str)
    person = fields.EmbeddedField(Person, required=False)
    organization = fields.EmbeddedField(Organization, required=True)