GetDKAN / dkan

DKAN Open Data Portal
https://dkan.readthedocs.io/en/latest/index.html
GNU General Public License v2.0
374 stars 172 forks source link

properties of schema array/items do not respect property specs regarding element type #4306

Open stefan-korn opened 1 month ago

stefan-korn commented 1 month ago

Current Behavior

Some property specs in the schema bring up special form element types in the JSON form widget.

For example: specifying property spec "format" with a value of "uri", changes the input type to "url" instead of default type textfield (text).

This is done in the StringHelper class.

This mechanism does not apply to property of array/items elements in the schema. These properties will be textfield (text) regardless of property spec.

Expected Behavior

Same validation behavior as with single value properties by changing the form element type.

Steps To Reproduce

Relevant log output (optional)

No response

Anything else?

No response