"""Schema for Lyrics.""" import marshmallow from marshmallow import fields from marshmallow.validate import Range class LyricsPutSchema(marshmallow.Schema): """Lyrics PUT Schema.""" lyrics = fields.String(required=True, allow_none=False) class LyricsDeleteSchema(marshmallow.Schema): """Delete Lyrics Schema.""" tuids = fields.List( fields.Int(allow_none=False, validate=[Range(min=0)]), required=True, allow_none=False) class LyricsCopyItemSchema(marshmallow.Schema): """Lyrics copy item Schema.""" source_tuid = fields.Int(required=True, validate=Range(min=1)) destination_tuid = fields.Int(required=True, validate=Range(min=1)) class LyricsCopySchema(marshmallow.Schema): """Lyrics copy Schema.""" items = fields.Nested( required=True, nested=LyricsCopyItemSchema, many=True) class LyricsHasExplicitSchema(marshmallow.Schema): """Lyrics explicit lyrics Schema.""" lyrics = fields.String(required=True)