-
Notifications
You must be signed in to change notification settings - Fork 416
Closed as duplicate of#2153
Closed as duplicate of#2153
Copy link
Description
Describe the bug
If I have a property name in the JSON Schema which contains a dot (.) character, JSONForms creates a sub-object in the data and splits the attribute name instead of using the original attribute name.
Example:
If the attribute name is "foo.bar" according to the JSON Schema, the generated data will look like this:
{
"foo": {
"bar":"some data"
}
}
This is problematic, because the generated data will never be valid against the schema
Expected behavior
If the JSON Schema attribute name contains a dot, it should not be handled as a sub-object separator in the generated data.
Steps to reproduce the issue
- Create a JSON Schema, where one of the attribute names contains a dot character.
- Load that schema into JSON Forms (Angular)
- Fill in the form
- Check the generated value. It contains the above mentioned sub-object structure.
Screenshots
No response
Which Version of JSON Forms are you using?
v3.5.1
Package
Core
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels