public class JsonSchemaProperty extends Object
Modifier and Type | Field and Description |
---|---|
static JsonSchemaProperty |
ARRAY |
static JsonSchemaProperty |
BOOLEAN |
static JsonSchemaProperty |
INTEGER |
static JsonSchemaProperty |
NULL |
static JsonSchemaProperty |
NUMBER |
static JsonSchemaProperty |
OBJECT |
static JsonSchemaProperty |
STRING |
Constructor and Description |
---|
JsonSchemaProperty(String key,
Object value) |
Modifier and Type | Method and Description |
---|---|
static JsonSchemaProperty |
description(String value) |
static JsonSchemaProperty |
enums(Class<?> enumClass) |
static JsonSchemaProperty |
enums(Object... enumValues) |
static JsonSchemaProperty |
enums(String... enumValues) |
boolean |
equals(Object another) |
static JsonSchemaProperty |
from(String key,
Object value) |
int |
hashCode() |
String |
key() |
static JsonSchemaProperty |
property(String key,
Object value) |
String |
toString() |
static JsonSchemaProperty |
type(String value) |
Object |
value() |
public static final JsonSchemaProperty STRING
public static final JsonSchemaProperty INTEGER
public static final JsonSchemaProperty NUMBER
public static final JsonSchemaProperty OBJECT
public static final JsonSchemaProperty ARRAY
public static final JsonSchemaProperty BOOLEAN
public static final JsonSchemaProperty NULL
public String key()
public Object value()
public static JsonSchemaProperty from(String key, Object value)
public static JsonSchemaProperty property(String key, Object value)
public static JsonSchemaProperty type(String value)
public static JsonSchemaProperty description(String value)
public static JsonSchemaProperty enums(String... enumValues)
public static JsonSchemaProperty enums(Object... enumValues)
public static JsonSchemaProperty enums(Class<?> enumClass)
Copyright © 2023. All rights reserved.