react-jsonschema-form
react-jsonschema-form copied to clipboard
FormData is not received based on schema properties
Prerequisites
- [X] I have searched the existing issues
- [X] I understand that providing a SSCCE example is tremendously useful to the maintainers.
- [X] I have read the documentation
- [X] Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.x
Current Behavior
FromData not receive as per schema properties
Expected Behavior
FromData should receive as per schema properties
Steps To Reproduce
Schema
{ "title": "", "type": "object", "required": [ "homeComponent", ], "properties": { "homeComponent": { "type": "object", "title": "Home Address", "properties": { "zipCode": { "type": "string", "title": "Zip", "minLength": 5 }, "city": { "type": "string", "title": "City" }, } }, }
UISchema
{ "homeComponent": { "ui:field": "CustomHomeComponent", } }
Note: HomeComponent is a custom component that contains all the required UI fields inside. I need to receive formData properly from HomeComponent and map it to the corresponding item, but I don't receive formData; it comes as empty.
Environment
- OS:Mac
- Node:
- npm:7.6.3
Anything else?
No response
@mageshsankar We don't understand what problem you are experiencing. Can you create a reproducible test case for us? Maybe in a playground? Until then we can't help you