Class JsonSchema
java.lang.Object
org.springframework.data.rest.webmvc.json.JsonSchema
Model class to render JSON schema documents.
- Author:
- Jon Brisbin, Oliver Gierke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classValue object to abstract aMapof JSON Schema definitions.static classAJsonSchema.JsonSchemaPropertyrepresenting enumerations.static classA JSON Schema property -
Constructor Summary
ConstructorsConstructorDescriptionJsonSchema(String title, String description, Collection<org.springframework.data.rest.webmvc.json.JsonSchema.AbstractJsonSchemaProperty<?>> properties, JsonSchema.Definitions definitions) Creates a newJsonSchemainstance for the given title, description,JsonSchema.AbstractJsonSchemaPropertys andJsonSchema.Definitions. -
Method Summary
-
Constructor Details
-
JsonSchema
public JsonSchema(String title, String description, Collection<org.springframework.data.rest.webmvc.json.JsonSchema.AbstractJsonSchemaProperty<?>> properties, JsonSchema.Definitions definitions) Creates a newJsonSchemainstance for the given title, description,JsonSchema.AbstractJsonSchemaPropertys andJsonSchema.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
-
getType
-
getTitle
-
getDescription
-
getContainer
public org.springframework.data.rest.webmvc.json.JsonSchema.PropertiesContainer getContainer() -
getDefinitions
-