from apollo_utils.service.schemas.mixins.market import MarketNoneMixin from marshmallow import fields from server.schemas.base.schemas import RequestSchema, Schema class IsrcRelation: """Isrc relation Schemas""" class Request(RequestSchema, MarketNoneMixin): pass class Response(Schema): """Isrc relation response schema.""" class ResponseMain(Schema): """Nested Isrc relation response schema main isrc representation.""" isrc = fields.String(required=True) track_id = fields.String(allow_none=True) main = fields.Nested(ResponseMain) related = fields.List(fields.String())