eclipsesource / eclipsesource/jsonforms

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

Open
#2,508 1 comment 0 reactions 0 assignees View on GitHub
angular material
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.