Package com.fasterxml.jackson.databind.node

Examples of com.fasterxml.jackson.databind.node.BooleanNode.booleanValue()


        if (node instanceof ObjectNode) {
            JsonSchema innerSchema = mapper.readValue(nodeStr, JsonSchema.class);
            return new ObjectSchema.SchemaAdditionalProperties(innerSchema);
        } else if (node instanceof BooleanNode) {
            BooleanNode booleanNode = (BooleanNode) node;
            if (booleanNode.booleanValue()) {
                return null; // "additionalProperties":true is the default
            } else {
                return ObjectSchema.NoAdditionalProperties.instance;
            }
        } else {
View Full Code Here


      JsonSchema innerSchema = mapper.treeToValue(node, JsonSchema.class);
      return new ArraySchema.SchemaAdditionalItems(innerSchema);
    }
    if (node instanceof BooleanNode) {
      BooleanNode booleanNode = (BooleanNode) node;
      if (booleanNode.booleanValue()) {
        return null; // "additionalItems":true is the default
      }
      return new ArraySchema.NoAdditionalItems();
    }
    throw new JsonMappingException("additionalItems nodes can only be of "
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.