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

ENH: Better names for reference options.

parent d605fd58
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!82ENH: JsonSchemaExporter accepts do_not_create parameter.
Pipeline #42994 passed
...@@ -120,8 +120,11 @@ def _make_segment_from_prop(prop: db.Property, additional_properties: bool, ...@@ -120,8 +120,11 @@ def _make_segment_from_prop(prop: db.Property, additional_properties: bool,
name_and_description_in_properties, name_and_description_in_properties,
additional_options_for_text_props, additional_options_for_text_props,
units_in_description) units_in_description)
subschema["title"] = "Create new"
json_prop["oneOf"] = [ json_prop["oneOf"] = [
{"enum": values}, {
"title": "Existing entries",
"enum": values},
subschema subschema
] ]
......
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