Reputation: 14425
I wan't to integrate https://github.com/mozilla-services/react-jsonschema-form on my reactjs client application
I have an http API made with spring, spring-data-rest and spring-hateoas.
I would like to generate the json schema (IETF JSON Schema Internet Draft Version 4) for my form validation.
I know spring-data-rest using jackson as serializer.
Is there a way to do it ?
Upvotes: 1
Views: 531
Reputation: 5293
You probably have to do very little, spring-data-rest already generates JSON Schema for you.
Here is the call for their example Person resource:
curl -H 'Accept:application/schema+json' http://localhost:8080/profile/persons
Upvotes: 0