public static enum CoreSchemaCfgDefn.JsonValidationPolicy extends Enum<CoreSchemaCfgDefn.JsonValidationPolicy>
Specifies the policy that will be used when validating JSON syntax values.
| Enum Constant and Description |
|---|
DISABLED
JSON syntax values will not be validated and, as a result any
sequence of bytes will be acceptable.
|
LENIENT
JSON syntax values must comply with RFC 7159 except: 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 syntax values must strictly conform to RFC 7159.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static CoreSchemaCfgDefn.JsonValidationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoreSchemaCfgDefn.JsonValidationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreSchemaCfgDefn.JsonValidationPolicy DISABLED
public static final CoreSchemaCfgDefn.JsonValidationPolicy LENIENT
public static final CoreSchemaCfgDefn.JsonValidationPolicy STRICT
public static CoreSchemaCfgDefn.JsonValidationPolicy[] values()
for (CoreSchemaCfgDefn.JsonValidationPolicy c : CoreSchemaCfgDefn.JsonValidationPolicy.values()) System.out.println(c);
public static CoreSchemaCfgDefn.JsonValidationPolicy 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 nullpublic String toString()
toString in class Enum<CoreSchemaCfgDefn.JsonValidationPolicy>Copyright © 2017-2020 Wren Security. All Rights Reserved.