Search in sources :

Example 1 with ObjectNode

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);
        }
    }
}
Also used : ObjectNode(com.reprezen.swagedit.core.model.ObjectNode) JsonPointer(com.fasterxml.jackson.core.JsonPointer)

Aggregations

JsonPointer (com.fasterxml.jackson.core.JsonPointer)1 ObjectNode (com.reprezen.swagedit.core.model.ObjectNode)1