Skip to content
Snippets Groups Projects
Verified Commit c1b16469 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: jsex: Propagate description in make_array()

parent 448faa36
No related branches found
No related tags found
3 merge requests!100WIP: Filling XLSX: Seems to be working.,!94ENH: add framework for converting json schema into table templates,!93Filling XLSX: Everything except multiple choice.
...@@ -8,7 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -8,7 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### ### Added ###
- Json schema exporter has new parameter `use_rt_pool`. - Json schema exporter:
- has new parameter `use_rt_pool`
- propagates more properties in the `make_array` function
### Changed ### ### Changed ###
......
...@@ -618,6 +618,9 @@ ui_schema : dict, optional ...@@ -618,6 +618,9 @@ ui_schema : dict, optional
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
} }
if schema.get("description"):
result["description"] = schema["description"]
if rjsf_uischema is not None: if rjsf_uischema is not None:
ui_schema = {"items": rjsf_uischema} ui_schema = {"items": rjsf_uischema}
return result, ui_schema return result, ui_schema
......
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