From 096eb99ddd3b835245ec109f8c8d301fe50d6620 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 20 Jul 2020 16:50:58 +0100 Subject: [PATCH] Removed default schema for built properties --- src/labthings/views/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/labthings/views/builder.py b/src/labthings/views/builder.py index dbe238ef..5de70f91 100644 --- a/src/labthings/views/builder.py +++ b/src/labthings/views/builder.py @@ -14,7 +14,7 @@ def property_of( name: str = None, readonly=False, description=None, - schema=fields.Field(), + schema=None, semtype=None, ): """ @@ -23,7 +23,7 @@ def property_of( :param name: str: (Default value = None) :param readonly: (Default value = False) Is the property read-only? :param description: (Default value = None) Human readable description of the property - :param schema: (Default value = fields.Field()) Marshmallow schema for the property + :param schema: (Default value = None) Marshmallow schema for the property :type schema: :class:`labthings.fields.Field` or :class:`labthings.schema.Schema` :param semtype: (Default value = None) Optional semantic object containing schema and annotations :type semtype: :class:`labthings.semantics.Semantic`