Skip to content

Dots in attribute names handled incorrectly in data (Angular) #2496

Description

@grunci

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

  1. Create a JSON Schema, where one of the attribute names contains a dot character.
  2. Load that schema into JSON Forms (Angular)
  3. Fill in the form
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions