Skip to content

Commit

Permalink
Merge pull request #102 from canonical/add-reserve-results-schema
Browse files Browse the repository at this point in the history
Also add reserve fields to results schema
  • Loading branch information
plars authored Sep 21, 2023
2 parents b00e6f0 + 1efc554 commit 43b05b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class Job(Schema):
provision_data = fields.Dict(required=False)
test_data = fields.Dict(required=False)
allocate_data = fields.Dict(required=False)
recover_data = fields.Dict(required=False)
reserve_data = fields.Dict(required=False)


Expand All @@ -72,12 +71,12 @@ class Result(Schema):
test_status = fields.Integer(required=False)
test_output = fields.String(required=False)
test_serial = fields.String(required=False)
recover_status = fields.Integer(required=False)
recover_output = fields.String(required=False)
recover_serial = fields.String(required=False)
allocate_status = fields.Integer(required=False)
allocate_output = fields.String(required=False)
allocate_serial = fields.String(required=False)
reserve_status = fields.Integer(required=False)
reserve_output = fields.String(required=False)
reserve_serial = fields.String(required=False)
cleanup_status = fields.Integer(required=False)
cleanup_output = fields.String(required=False)
cleanup_serial = fields.String(required=False)
Expand Down

0 comments on commit 43b05b5

Please sign in to comment.