public static class JsonSchema.JsonSchemaProperty extends Object
Modifier and Type | Field and Description |
---|---|
String |
description |
JsonSchemaFormat |
format |
Map<String,String> |
items |
String |
pattern |
String |
reference |
String |
type |
Boolean |
uniqueItems |
public String description
public String type
public JsonSchemaFormat format
public String pattern
public Boolean uniqueItems
public String reference
public JsonSchema.JsonSchemaProperty withType(Class<?> type)
JsonSchema.JsonSchemaProperty
to reflect the given type.type
- must not be null.public JsonSchema.JsonSchemaProperty with(org.springframework.data.util.TypeInformation<?> type)
JsonSchema.JsonSchemaProperty
to reflect the given type.type
- must not be null.public JsonSchema.JsonSchemaProperty withFormat(JsonSchemaFormat format)
JsonSchemaFormat
to be exposed on the current JsonSchema.JsonSchemaProperty
.format
- must not be null.public JsonSchema.JsonSchemaProperty withRegex(String regex)
JsonSchema.JsonSchemaProperty
to require the given regular expression as pattern.regex
- must not be null.public JsonSchema.JsonSchemaProperty withPattern(Pattern pattern)
JsonSchema.JsonSchemaProperty
to require the given Pattern
.pattern
- must not be null.public JsonSchema.JsonSchemaProperty asAssociation()
JsonSchema.JsonSchemaProperty
into an association.public String getName()
public String getTitle()
public boolean isReadOnly()
protected T withReadOnly()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.