You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
run the mvn clean install to generate the java client model class
verify the @JsonPropertyOrder in the generated java model class -- fields are not in the expected/required order to work properly when send the body request.
Expected behavior
the @JsonPropertyOrder in the generated java model class -- fields must be in the expected/required order to work properly when send the body request.
Describe the bug
The model java class generated contains wrong fields order in @JsonPropertyOrder
To Reproduce
Steps to reproduce the behavior:
include the api.raml attached
include the attached schema file
raml-codegen-issue.zip
include the attached example json request file
run the mvn clean install to generate the java client model class
verify the @JsonPropertyOrder in the generated java model class -- fields are not in the expected/required order to work properly when send the body request.
Expected behavior
the @JsonPropertyOrder in the generated java model class -- fields must be in the expected/required order to work properly when send the body request.
Party.java model generated with @JsonPropertyOrder
expected:
@JsonPropertyOrder({
"@id",
"PartyTypeCode",
"FullName",
"GovtID",
"GovtIDTC",
"GovtIDCertificationDate",
"ResidenceCountry",
"Person",
"Organization",
"Address",
"Phone",
"Producer",
"EMailAddress",
"OLifEExtension"
})
current:
@JsonPropertyOrder({
"@id",
"PartyTypeCode",
"FullName",
"GovtID",
"GovtIDTC",
"GovtIDCertificationDate",
"ResidenceCountry",
"Person",
"Address",
"Phone",
"EMailAddress",
"Producer",
"Organization",
"OLifEExtension"
})
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: