Skip to content
Snippets Groups Projects
Commit 1ba1d2c8 authored by Julian's avatar Julian
Browse files

Allow empty label and help text

parent 0e53b338
No related branches found
No related tags found
No related merge requests found
...@@ -69,8 +69,8 @@ class JSONSchema: ...@@ -69,8 +69,8 @@ class JSONSchema:
def add_field(self, name, field): def add_field(self, name, field):
new_field = { new_field = {
"type": "string", "type": "string",
"title": str(field.label), "title": str(field.label or ""),
"description": str(field.help_text), "description": str(field.help_text or ""),
"readOnly": field.disabled "readOnly": field.disabled
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment