public class JsonSchema extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonSchema.Definitions
Value object to abstract a
Map of JSON Schema definitions. |
static class |
JsonSchema.EnumProperty
A
JsonSchema.JsonSchemaProperty representing enumerations. |
static class |
JsonSchema.JsonSchemaProperty
A JSON Schema property
|
| Constructor and Description |
|---|
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, AbstractJsonSchemaPropertys and
JsonSchema.Definitions. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.rest.webmvc.json.JsonSchema.PropertiesContainer |
getContainer() |
JsonSchema.Definitions |
getDefinitions() |
String |
getDescription() |
String |
getSchema() |
String |
getTitle() |
String |
getType() |
public JsonSchema(String title, String description, Collection<org.springframework.data.rest.webmvc.json.JsonSchema.AbstractJsonSchemaProperty<?>> properties, JsonSchema.Definitions definitions)
JsonSchema instance for the given title, description, AbstractJsonSchemaPropertys and
JsonSchema.Definitions.title - must not be null or empty.description - can be null.properties - must not be null.definitions - must not be null.public String getSchema()
public String getType()
public String getTitle()
public String getDescription()
public org.springframework.data.rest.webmvc.json.JsonSchema.PropertiesContainer getContainer()
public JsonSchema.Definitions getDefinitions()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.