title: How to customize the schema for an entity in Spring Data Rest
body: <p>Currently I can get the JSON Schema of a resource by making a GET request to /{resource}/schema (with accept:application/schema+json).</p>
  
  <p>It looks like this:</p>
  
  <pre><code>{
    "name" : "{java_package}.{resource_class_name}",
    "description" : "rest.description.{resource_class_name}",
    "links" : [ ],
    "properties" : {
      "{property name}" : {
        "type" : "{property_type}",
        "description" : "rest.description.{resource_class_name}.{property_name}",
        "required" : false
      }
    }
  }
  </code></pre>
  
  <p>What I cannot figure out is how to change the name, descriptions, or whether the property is required or not. I want to to look like this:</p>
  
  <pre><code>{
    "name" : "{resource_name}",
    "description" : "{custom_description}",
    "links" : [ ],
    "properties" : {
      "{property_name}" : {
        "type" : "{property_type}",
        "description" : "{custom_property_description}",
        "required" : {true or false}
      }
    }
  }
  </code></pre>
  
  <p>I tried to annotate the entity class this way:</p>
  
  <pre><code>@JsonPropertyDescription(value = "{custom_property_description}")
  @JsonProperty(required = {true or false})
  private {property_type} {property_name};
  </code></pre>
  
  <p>But the end results were the same. Does anyone know how to customize the schema that SDR returns?</p>