Skip to content

Commit

Permalink
items: loaders: reuse IdentifiersSchema from document
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 authored and kpsherva committed May 13, 2024
1 parent 1d9e003 commit 6736dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
4 changes: 2 additions & 2 deletions invenio_app_ils/items/loaders/jsonschemas/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
set_changed_by,
)
from invenio_app_ils.records.loaders.schemas.price import PriceSchema
from invenio_app_ils.records.loaders.schemas.identifiers import IdentifiersSchema
from invenio_app_ils.documents.loaders.jsonschemas.document import IdentifierSchema


class ISBNSchema(Schema):
Expand Down Expand Up @@ -57,7 +57,7 @@ class Meta:
price = fields.Nested(PriceSchema)
shelf = fields.Str()
status = fields.Str(required=True, validate=validate.OneOf(Item.STATUSES))
identifiers = fields.List(fields.Nested(IdentifiersSchema))
identifiers = fields.List(fields.Nested(IdentifierSchema))

@pre_load
def set_changed_by(self, data, **kwargs):
Expand Down
22 changes: 0 additions & 22 deletions invenio_app_ils/records/loaders/schemas/identifiers.py

This file was deleted.

0 comments on commit 6736dcf

Please sign in to comment.