Class JsonNodeUtil


  • public class JsonNodeUtil
    extends Object
    • Constructor Detail

      • JsonNodeUtil

        public JsonNodeUtil()
    • Method Detail

      • isNodeNullable

        public static boolean isNodeNullable​(com.fasterxml.jackson.databind.JsonNode schema)
      • isNodeNullable

        public static boolean isNodeNullable​(com.fasterxml.jackson.databind.JsonNode schema,
                                             SchemaValidatorsConfig config)
      • equalsToSchemaType

        public static boolean equalsToSchemaType​(com.fasterxml.jackson.databind.JsonNode node,
                                                 JsonType schemaType,
                                                 JsonSchema parentSchema,
                                                 ValidationContext validationContext)
      • isNumber

        public static boolean isNumber​(com.fasterxml.jackson.databind.JsonNode node,
                                       SchemaValidatorsConfig config)
        Check if the type of the JsonNode's value is number based on the status of typeLoose flag.
        Parameters:
        node - the JsonNode to check
        config - the SchemaValidatorsConfig to depend on
        Returns:
        boolean to indicate if it is a number