spring-projects / spring-projects/spring-data-rest
Extend JSONSchema. [DATAREST-921]
Open
@odrotbohm is already working on this.
Since Dec 31, 2020.
type: enhancement
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Petar Tahchiev opened DATAREST-921 and commented
Hello,
according to the JSONSchema specification:
http://json-schema.org/latest/json-schema-core.html#anchor20
"Implementations MAY choose to define additional keywords to JSON Schema". It would be nice if we provide the ability for the user to define extra fields in the JsonSchema#JsonProperty.
However the current implementation only defines fixed amount of properties:
@JsonInclude(Include.NON_EMPTY)
abstract static class AbstractJsonSchemaProperty<T extends AbstractJsonSchemaProperty<T>> {
private final String name;
private final String title;
private final boolean required;
private boolean readOnly;
1 votes, 2 watchers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.