use of com.reprezen.swagedit.core.json.references.JsonReferenceValidator in project KaiZen-OpenAPI-Editor by RepreZen.
the class OpenApi3Editor method createValidator.
@Override
protected Validator createValidator() {
Map<String, JsonNode> preloadedSchemas = Maps.newHashMap();
preloadedSchemas.put("http://openapis.org/v3/schema.json", Activator.getDefault().getSchema().getRootType().asJson());
return new Validator(new JsonReferenceValidator(new JsonReferenceFactory()), preloadedSchemas);
}
Aggregations