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 |
Modifier and Type | Method and Description |
---|---|
JsonSchema.JsonSchemaProperty |
asAssociation()
Turns the current
JsonSchema.JsonSchemaProperty into an association. |
String |
getName() |
String |
getTitle() |
boolean |
isReadOnly() |
JsonSchema.JsonSchemaProperty |
with(TypeInformation<?> type)
Configures the
JsonSchema.JsonSchemaProperty to reflect the given type. |
JsonSchema.JsonSchemaProperty |
withFormat(JsonSchemaFormat format)
Configures the given
JsonSchemaFormat to be exposed on the current JsonSchema.JsonSchemaProperty . |
JsonSchema.JsonSchemaProperty |
withPattern(Pattern pattern)
Configures the
JsonSchema.JsonSchemaProperty to require the given Pattern . |
protected T |
withReadOnly() |
JsonSchema.JsonSchemaProperty |
withRegex(String regex)
Configures the
JsonSchema.JsonSchemaProperty to require the given regular expression as pattern. |
JsonSchema.JsonSchemaProperty |
withType(Class<?> type)
Configures the
JsonSchema.JsonSchemaProperty to reflect the given type. |
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(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–2021 Pivotal Software, Inc.. All rights reserved.