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
Modifier and TypeClassDescriptionstatic class
Value object to abstract aMap
of JSON Schema definitions.static class
AJsonSchema.JsonSchemaProperty
representing enumerations.static class
A JSON Schema property -
Constructor Summary
ConstructorDescriptionJsonSchema
(String title, String description, Collection<org.springframework.data.rest.webmvc.json.JsonSchema.AbstractJsonSchemaProperty<?>> properties, JsonSchema.Definitions definitions) Creates a newJsonSchema
instance for the given title, description,JsonSchema.AbstractJsonSchemaProperty
s 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 newJsonSchema
instance for the given title, description,JsonSchema.AbstractJsonSchemaProperty
s 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
-