"""Schema for an Artist related Resource.""" from marshmallow import fields from marshmallow.validate import OneOf from permissions.constants import constants from permissions.validations import ma class ArtistResourceSchema(ma.Schema): """Schema for an Artist Resource. Properties: - resource_type (str): ArtistInfo and LabelParticipant only. - artist_id (int): Identifier for that resource. """ resource_type = fields.Str(validate=OneOf(constants.TYPES_ASSOCIATED_WITH_LABEL)) artist_id = fields.Int(required=True) # this is the name from the handler.