Source code for invenio_records_lom.marshmallow.json
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Graz University of Technology.
#
# invenio-records-lom is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""JSON Schemas."""
from __future__ import absolute_import, print_function
from invenio_records_rest.schemas import Nested, StrictKeysMixin
from invenio_records_rest.schemas.fields import (
DateString,
PersistentIdentifier,
SanitizedUnicode,
)
from marshmallow import fields, missing, validate
[docs]class LomSchemaV1(StrictKeysMixin):
"""Lom schema."""
metadata = fields.Nested(LomMetadataSchemaV1)
created = fields.Str(dump_only=True)
updated = fields.Str(dump_only=True)
id = PersistentIdentifier()