react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

Support for patternProperties

Open mohammedkhadar opened this issue 5 years ago • 9 comments

Prerequisites

Description

No support for defining properties with patternProperties.

Documentation available here

Steps to Reproduce

  1. Define object properties using patternProperties in JSON schema
  2. Data validation against the JSON schema is successful.
  3. Object properties are not rendered as Form fields.

Expected behavior

Properties in the data should be rendered as form fields.

Actual behavior

Properties in the data are not rendered as form fields.

Version

2.2.1

mohammedkhadar avatar Jul 23 '20 22:07 mohammedkhadar

It would be very helpful to have that feature. I am working with many JSON schemas that use patternProperties. Unfortunately I can't use rjsf for generating forms.

j-zimnowoda avatar Mar 08 '21 11:03 j-zimnowoda

Did you find any other solutions for patternProperties? @j-zimnowoda

jakubvos avatar May 23 '22 07:05 jakubvos

We have a need for patternProperties support here, too.

In terms of the user experience, I see this being quite similar to the additionalProperties solution, with the difference that the key entered by the user must be validated against the pattern. In case key and pattern do not match, an error must be displayed in the vicinity of the key field.

Agree?

marians avatar Mar 09 '23 10:03 marians

This issue has been automatically marked as possibly close because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.

stale[bot] avatar Nov 04 '24 00:11 stale[bot]

This issue remains relevant for us

marians avatar Nov 04 '24 12:11 marians

This issue was closed because of lack of recent activity. Reopen if you still need assistance.

stale[bot] avatar Dec 05 '24 04:12 stale[bot]

Please keep this issue open, thank you.

kuhlaid avatar Dec 18 '24 00:12 kuhlaid

It would be lovely if we could re-open this

marians avatar Dec 18 '24 08:12 marians

Fixed with #4582

heath-freenome avatar Aug 16 '25 00:08 heath-freenome