public static enum JsonSchema.ValidationPolicy extends Enum<JsonSchema.ValidationPolicy>
| Enum Constant and Description |
|---|
DISABLED
JSON validation policy which does not perform any validation.
|
LENIENT
JSON validation policy requiring conformance to RFC 7159 with the following exceptions: 1) comments are
allowed, 2) single quotes may be used instead of double quotes, and 3) unquoted control characters are
allowed in strings.
|
STRICT
JSON validation policy requiring strict conformance to RFC 7159.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonSchema.ValidationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonSchema.ValidationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonSchema.ValidationPolicy STRICT
public static final JsonSchema.ValidationPolicy LENIENT
public static final JsonSchema.ValidationPolicy DISABLED
public static JsonSchema.ValidationPolicy[] values()
for (JsonSchema.ValidationPolicy c : JsonSchema.ValidationPolicy.values()) System.out.println(c);
public static JsonSchema.ValidationPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017-2020 Wren Security. All Rights Reserved.