Skip to content

special character in property name (dot) #1631

Closed
@Deepak1100

Description

@Deepak1100

Describe the bug
I have '.' in one property name it's creating key in form like object.key
example:

"parameters": {
          "type": "object",
          "properties": {
            "rds.logical_replication": {
              "type": "string",
              "enum": [
                "1",
                "0"
              ],
              "default": "1"
            }
          }
},
        {
          "type": "FoldableGroup",
          "id": "parameters",
          "parentId": "database",
          "label": "DB Parameter",
          "scope": "#/properties/extraResources/properties/database/properties/parameters",
          "elements": [
            {
              "type": "Control",
              "label": "rds.logical_replication",
              "scope": "#/properties/extraResources/properties/database/properties/parameters/properties/rds.logical_replication"
            }
          ]
        },

The output looks like this

      "parameters": {
        "rds": {
          "logical_replication": "0"
        },
        "rds.logical_replication": "1"
      },

Expected behavior

      "parameters": {
        "rds.logical_replication": "1"
      },

i think the problem is with the scope

#/properties/extraResources/properties/database/properties/parameters/properties/rds.logical_replication

is there way i can escap special characther?

Used Setup (please complete the following information):
react

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions