Class JsonSchema

java.lang.Object
org.springframework.data.rest.webmvc.json.JsonSchema

public class JsonSchema extends Object
Model class to render JSON schema documents.
Author:
Jon Brisbin, Oliver Gierke
  • Constructor Details

    • JsonSchema

      public JsonSchema(String title, String description, Collection<org.springframework.data.rest.webmvc.json.JsonSchema.AbstractJsonSchemaProperty<?>> properties, JsonSchema.Definitions definitions)
      Creates a new JsonSchema instance for the given title, description, JsonSchema.AbstractJsonSchemaPropertys and JsonSchema.Definitions.
      Parameters:
      title - must not be null or empty.
      description - can be null.
      properties - must not be null.
      definitions - must not be null.
  • Method Details

    • getSchema

      public String getSchema()
    • getType

      public String getType()
    • getTitle

      public String getTitle()
    • getDescription

      public String getDescription()
    • getContainer

      public org.springframework.data.rest.webmvc.json.JsonSchema.PropertiesContainer getContainer()
    • getDefinitions

      public JsonSchema.Definitions getDefinitions()