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 "