Package com.networknt.schema.utils
Class JsonNodeTypes
java.lang.Object
com.networknt.schema.utils.JsonNodeTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequalsToSchemaType(com.fasterxml.jackson.databind.JsonNode node, JsonType schemaType, Schema parentSchema, SchemaContext schemaContext, ExecutionContext executionContext) static booleanisNodeNullable(com.fasterxml.jackson.databind.JsonNode schema) static booleanisNumber(com.fasterxml.jackson.databind.JsonNode node, SchemaRegistryConfig config) Check if the type of the JsonNode's value is number based on the status of typeLoose flag.
-
Constructor Details
-
JsonNodeTypes
public JsonNodeTypes()
-
-
Method Details
-
isNodeNullable
public static boolean isNodeNullable(com.fasterxml.jackson.databind.JsonNode schema) -
equalsToSchemaType
public static boolean equalsToSchemaType(com.fasterxml.jackson.databind.JsonNode node, JsonType schemaType, Schema parentSchema, SchemaContext schemaContext, ExecutionContext executionContext) -
isNumber
public static boolean isNumber(com.fasterxml.jackson.databind.JsonNode node, SchemaRegistryConfig config) Check if the type of the JsonNode's value is number based on the status of typeLoose flag.- Parameters:
node- the JsonNode to checkconfig- the SchemaValidatorsConfig to depend on- Returns:
- boolean to indicate if it is a number
-