- Notifications
You must be signed in to change notification settings - Fork 562
Open
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged
Description
As the title says, when generating a JSON schema from a Spring Boot application with Spring Data REST the resulting schema contains a field requiredProperties with all non-nullable fields. This field should be named required instead. The field is defined here:
Line 210 in 66589c6
| public final Collection<String> requiredProperties; |
See this page for the exact spec: https://json-schema.org/understanding-json-schema/reference/object#required .
I also found this issue that mentions a requiredProperties field, perhaps that might be related / have caused some confusion.
For extra context, I generated the JSON schema like this (for a companies repo): curl --header 'Accept: application/schema+json' http://localhost:8080/api/v1/profile/companies
Metadata
Metadata
Assignees
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged