Schema level title and description twice on the generated starter form
datakurre opened this issue · comments
Asko Soukka commented
When, e.g. on jupyterlab-starters binder, I update "Multi-Stage Starter Notebook"'s schema to include title and description:
"schema": {
"title": "Schema title",
"description": "Schema description",
"properties": {
"name": {
"description": "What is your name?",
"title": "Name",
"type": "string"
}
},
The form opened from the launcher will show title and description twice:
Schema title
Schema description
Schema title
Schema description
Name*
What is your name?
is a required property
Nicholas Bollweg commented
eek!
Asko Soukka commented
Nicholas Bollweg commented
Ah. The formatting issue aside, it appears that adding type
clears up the duplicate title
and description
:
"schema": {
"type": "object", # <--- this right here
"title": "# Welcome to Robot Framework on Jupyter",
"description": "Please, click **START** to launch the tutorial.",
"properties": {},
"required": []
},
Could actually demand that the root-level schema be an object...
Asko Soukka commented
@bollwyvl Thanks. Can confirm the fix. I close this and open another issue about the styling.