eclipsesource / eclipsesource/jsonforms

Render conditional properties defined in `if`

Open
#2,262 1 comment 1 reaction 0 assignees View on GitHub
core enhancement
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

### Is your feature request related to a problem? Please describe.

For the following JSON Schema, it would be great if JsonForms could render the elements dynamically given schema:

```
type: object
if:
properties:
type:
const: CSV
then:
properties:
record_delimiter:
default: "\n"
type: string
```

### Describe the solution you'd like

Render elements when the field matches given value

### Describe alternatives you've considered

Move definition to upper level and use `required` in if or use custom uischema to render schema on the fly.

### Framework

React

### RendererSet

Material

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