From edf2e39fc7c7ba1b05f60bd094955ea8bca7e38a Mon Sep 17 00:00:00 2001 From: yiorgos marinellis Date: Wed, 25 Mar 2020 15:38:29 +0100 Subject: [PATCH] Change proofAuthor to proofAuthorID and resolves #18 --- ereuse_devicehub/resources/proof/schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/proof/schemas.py b/ereuse_devicehub/resources/proof/schemas.py index 581ad681..a07fc524 100644 --- a/ereuse_devicehub/resources/proof/schemas.py +++ b/ereuse_devicehub/resources/proof/schemas.py @@ -38,7 +38,7 @@ class ProofDataWipe(Proof): date = DateTime('iso', required=True) result = Boolean(required=True) proof_author_id = SanitizedStr(validate=f.validate.Length(max=STR_SIZE), - load_only=True, required=True, data_key='proofAuthor') + load_only=True, required=True, data_key='proofAuthorID') proof_author = NestedOn(s_user.User, dump_only=True) erasure = NestedOn(s_action.EraseBasic, only_query='id', data_key='erasureID') @@ -47,7 +47,7 @@ class ProofFunction(Proof): __doc__ = m.ProofFunction.__doc__ disk_usage = Integer(validate=f.validate.Range(min=0, max=100), data_key='diskUsage') proof_author_id = SanitizedStr(validate=f.validate.Length(max=STR_SIZE), - load_only=True, required=True, data_key='proofAuthor') + load_only=True, required=True, data_key='proofAuthorID') proof_author = NestedOn(s_user.User, dump_only=True) rate = NestedOn(s_action.Rate, required=True, only_query='id', data_key='rateID')