eclipsesource / eclipsesource/jsonforms

Support for propertyNames key/value-objects etc

Open
#1,765 4 comments 5 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

I am trying to set up a form from an object that is of type `Record`. I'm not sure if this is already supported.

I've tried this schema (showing only the relevant part):

```json
{
"clients": {
"additionalProperties": {
"additionalItems": true,
"description": "One or more valid password that can be used for client-authentication",
"items": {
"type": "string"
},
"minItems": 1,
"title": "The clientId schema",
"type": "array",
"uniqueItems": true
},
"description": "The clients will authenticate via Basic Auth",
"examples": [
{
"clientId": [
"password1",
"password2"
]
}
],
"propertyNames": {
"maxLength": 100,
"minLength": 3
},
"title": "As an alternative to other authentication, a simple map of client with clientSecrets can be supplied",
"type": "object"
}
}
```

Perhaps this only needs a custom renderer? I'm thinking it should act sort of like the Material-renderer does already with arrays, only that one has to provide the propertyName as well.

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.