fix firmware build serialization

This commit is contained in:
Laura Klünder 2023-11-30 21:33:15 +01:00
parent 317ff66c76
commit ebfdf1d69f

View file

@ -122,6 +122,10 @@ class UploadFirmwareBuildSchema(Schema):
project_description: dict = APIField(..., title='project_description.json contents')
uploaded_filename: str = APIField(..., example="firmware.bin")
@staticmethod
def resolve_boards(obj):
return list(obj.boards)
class UploadFirmwareSchema(Schema):
"""