public static enum JsonSchemaConfig.UnionStrategy extends java.lang.Enum<JsonSchemaConfig.UnionStrategy>
Enum Constant and Description |
---|
OBJECT
Converts to an empty object "{}".
|
ONE_OF
Converts to a schema that uses "oneOf".
|
STRUCTURE
Converts to an object with properties just like a structure.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static JsonSchemaConfig.UnionStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonSchemaConfig.UnionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonSchemaConfig.UnionStrategy ONE_OF
This is the default setting used if not configured.
public static final JsonSchemaConfig.UnionStrategy OBJECT
public static final JsonSchemaConfig.UnionStrategy STRUCTURE
public static JsonSchemaConfig.UnionStrategy[] values()
for (JsonSchemaConfig.UnionStrategy c : JsonSchemaConfig.UnionStrategy.values()) System.out.println(c);
public static JsonSchemaConfig.UnionStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<JsonSchemaConfig.UnionStrategy>