title: Spring Data Rest: How can I make a json schema property required?
body: <p>From reading <a href="https://stackoverflow.com/questions/21169937/spring-data-rest-how-to-expose-a-json-schema-from-a-repository-2-0-0-m1">another question</a>, I learned that Spring Data Rest exposes a JSON schema at: <code>/{resourceName}/schema</code>. Ex:</p>
  
  <pre>
  GET http://localhost:8080/members/schema
  Accept : application/schema+json
  </pre>
  
  <pre>
  {
      "name": "org.jxc876.model.Member",
      "description": "rest.description.member",
      "links": [],
      "properties": {
          "id": {
              "type": "long",
              "description": "rest.description.member.id",
              "required": false
          },
          "alias": {
              "type": "string",
              "description": "rest.description.member.alias",
              "required": false
          },
          "name": {
              "type": "string",
              "description": "rest.description.member.name",
              "required": false
          }
      }
  }
  </pre>
  
  <p>I want to indicate that certain fields are required. I initially tried using Bean Validation annotations (@NotNull) and Jackson (@JacksonProperty) annotations but neither seemed to trigger the flag. </p>
  
  <p>Note: I am using Spring Data Rest 2.2.1</p>