public static enum JsonSchemaConfig.MapStrategy extends java.lang.Enum<JsonSchemaConfig.MapStrategy>
Enum Constant and Description |
---|
PATTERN_PROPERTIES
Converts to a schema that uses "patternProperties".
|
PROPERTY_NAMES
Converts to a schema that uses a combination of "propertyNames"
and "additionalProperties".
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static JsonSchemaConfig.MapStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonSchemaConfig.MapStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonSchemaConfig.MapStrategy PROPERTY_NAMES
This is the default setting used if not configured.
public static final JsonSchemaConfig.MapStrategy PATTERN_PROPERTIES
pattern
trait, a default
indicating one or more of any character (".+") is applied.public static JsonSchemaConfig.MapStrategy[] values()
for (JsonSchemaConfig.MapStrategy c : JsonSchemaConfig.MapStrategy.values()) System.out.println(c);
public static JsonSchemaConfig.MapStrategy 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.MapStrategy>