From 76336ff34df276f3889a9c820dc7090f74288db2 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 31 Mar 2022 19:41:22 +0200 Subject: [PATCH] change schema for lshw and smart data --- ereuse_devicehub/parser/schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/parser/schemas.py b/ereuse_devicehub/parser/schemas.py index 71e56b91..557dc10d 100644 --- a/ereuse_devicehub/parser/schemas.py +++ b/ereuse_devicehub/parser/schemas.py @@ -1,14 +1,14 @@ from flask import current_app as app from marshmallow import Schema as MarshmallowSchema from marshmallow import ValidationError, validates_schema -from marshmallow.fields import Nested, String +from marshmallow.fields import Dict, List, Nested, String class Snapshot_lite_data(MarshmallowSchema): dmidecode = String(required=False) hwinfo = String(required=False) - smart = String(required=False) - lshw = String(required=False) + smart = List(Dict(), required=False) + lshw = Dict(required=False) class Snapshot_lite(MarshmallowSchema):