Skip to content

Duplicate column definition name provided: "action" in "type": "array" #2508

@menelai

Description

@menelai

Describe the bug

Error when there is an "action" field in the "type": "array"

Expected behavior

No Error

Steps to reproduce the issue

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Configuration",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "standard",
        "expanded"
      ],
      "default": "standard"
    },
    "entries": {
      "type": "array",
      "title": "Rules",
      "items": {
        "type": "object",
        "required": [
          "action",
          "value"
        ],
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "permit",
              "deny"
            ]
          },
          "value": {
            "type": "string"
          }
        }
      }
    }
  }
}

apply this schema and you'll see:
Caught error Error: Duplicate column definition name provided: "action".
at getTableDuplicateColumnNameError

Screenshots

No response

Which Version of JSON Forms are you using?

v3.7.0

Package

Angular Material Renderers

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions