spring-projects / spring-projects/spring-data-rest

Extend JSONSchema. [DATAREST-921]

Open
#1,284 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.