Open
Description
For documentation readability it would be very convenient if the required
properties of schema are the same of the order of properties in the schema itself. Unfortunately this is not the case and the required
properties are always ordered alphabetically.
public void setRequired(List<String> required) {
List<String> list = new ArrayList<>();
if (required != null) {
for (String req : required) {
if (this.properties == null || this.properties.containsKey(req)) {
list.add(req);
}
}
}
Collections.sort(list); // <==================== HERE!
if (list.isEmpty()) {
list = null;
}
this.required = list;
}
What is the rationale behind this?
Metadata
Metadata
Assignees
Labels
No labels