pathTokens.add(constraint.getDescription().getName()); pathTokens.add(schema.getName()); for (PathNode node : path) {
@Override protected void writeEntityBody(Constraint constraint, JsonGenerator jg) throws IOException { Description description = constraint.getDescription(); jg.writeStringField("name", description.getName()); // constraint parameters jg.writeObjectFieldStart("parameters"); for (Map.Entry<String, Serializable> param : description.getParameters().entrySet()) { jg.writeStringField(param.getKey(), param.getValue().toString()); } jg.writeEndObject(); }