Package com.networknt.schema
Class Annotations
- java.lang.Object
-
- com.networknt.schema.Annotations
-
public class Annotations extends Object
Annotations.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
EVALUATION_ANNOTATIONS
static Predicate<String>
EVALUATION_ANNOTATIONS_PREDICATE
static Predicate<String>
PREDICATE_FALSE
static Set<String>
UNEVALUATED_ITEMS_ANNOTATIONS
static Predicate<String>
UNEVALUATED_ITEMS_ANNOTATIONS_PREDICATE
static Set<String>
UNEVALUATED_PROPERTIES_ANNOTATIONS
static Predicate<String>
UNEVALUATED_PROPERTIES_ANNOTATIONS_PREDICATE
-
Constructor Summary
Constructors Constructor Description Annotations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>
getDefaultAnnotationAllowList(JsonMetaSchema metaSchema)
Gets the default annotation allow list.static Predicate<String>
getDefaultAnnotationAllowListPredicate(JsonMetaSchema metaSchema)
Gets the default annotation allow list predicate.
-
-
-
Field Detail
-
UNEVALUATED_PROPERTIES_ANNOTATIONS
public static final Set<String> UNEVALUATED_PROPERTIES_ANNOTATIONS
-
UNEVALUATED_PROPERTIES_ANNOTATIONS_PREDICATE
public static final Predicate<String> UNEVALUATED_PROPERTIES_ANNOTATIONS_PREDICATE
-
UNEVALUATED_ITEMS_ANNOTATIONS_PREDICATE
public static final Predicate<String> UNEVALUATED_ITEMS_ANNOTATIONS_PREDICATE
-
EVALUATION_ANNOTATIONS_PREDICATE
public static final Predicate<String> EVALUATION_ANNOTATIONS_PREDICATE
-
-
Method Detail
-
getDefaultAnnotationAllowList
public static Set<String> getDefaultAnnotationAllowList(JsonMetaSchema metaSchema)
Gets the default annotation allow list.- Parameters:
metaSchema
- the meta schema- Returns:
- the default annotation allow set
-
getDefaultAnnotationAllowListPredicate
public static Predicate<String> getDefaultAnnotationAllowListPredicate(JsonMetaSchema metaSchema)
Gets the default annotation allow list predicate.- Parameters:
metaSchema
- the meta schema- Returns:
- the default annotation allow list predicate
-
-