From 43efa295fb1644992d6b1715d0b2650ce1de1a9a Mon Sep 17 00:00:00 2001
From: Peter Stanko <wermington@gmail.com>
Date: Sun, 2 Sep 2018 20:41:27 +0200
Subject: [PATCH] Fixes in worker schema

---
 portal/rest/schemas.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/portal/rest/schemas.py b/portal/rest/schemas.py
index a7671f1..6d84d48 100644
--- a/portal/rest/schemas.py
+++ b/portal/rest/schemas.py
@@ -273,9 +273,9 @@ class WorkerSchema(BaseSchema, Schema):
     """Component Schema
     """
     name = fields.Str()
-    url = fields.Str()
-    tags = fields.Str()
-    portal_secret = fields.Str()
+    url = fields.Str(allow_none=True)
+    tags = fields.Str(allow_none=True)
+    portal_secret = fields.Str(allow_none=True)
     state = EnumField(WorkerState)
 
 
-- 
GitLab