use of com.reprezen.swagedit.core.model.ObjectNode in project KaiZen-OpenAPI-Editor by RepreZen.
the class Validator method checkObjectTypeDefinition.
/**
* Validates an object type definition.
*
* @param errors
* @param node
*/
protected void checkObjectTypeDefinition(Set<SwaggerError> errors, AbstractNode node) {
if (node instanceof ObjectNode) {
JsonPointer ptr = node.getPointer();
if (ptr != null && ValidationUtil.isInDefinition(ptr.toString())) {
checkMissingType(errors, node);
checkMissingRequiredProperties(errors, node);
}
}
}
Aggregations