Assuming my payload class is:
public class Payload {
private final long id;
private final String aField;
}
springfox will sort the payload fields in the lexicographical order which will produce the following payload spec:
{
"aField": "string",
"id": 0
}
Is there any control parameter which tells the springfox to preserve the original fields order?