eclipsesource / jsonforms-react-seed

React-based JSON Forms Seed App
https://jsonforms-react-seed.netlify.app
138 stars 141 forks source link

How to get the Field name from jsonschema #110

Closed KIC closed 1 year ago

KIC commented 1 year ago

In the Rating example the label "Rating" is hard coded: https://github.com/eclipsesource/jsonforms-react-seed/blob/3ed669c5e6434919b090c7c9981f3c9a643c125c/src/Rating.tsx#L16C1-L17C1

How would I get the label from the jsonschema?

sdirix commented 1 year ago

Please use the JSON Forms community for questions.

You get a lot of properties injected, including a pre-calculated label in the props which can just be used.