Add sortFields = true|false
to disable sorting when generating the model
#1737
Labels
Milestone
sortFields = true|false
to disable sorting when generating the model
#1737
Orval generates
*.ts
model files from a givenopenapi.yml
. However, the fields within the*.ts
model interface/type are always sorted implicitly instead of using the field order defined inopenapi.yml
. For example:What are the steps to reproduce this issue?
1.
openapi.yml
has aUser
endpoint with the followinguser.ts
and look at the ordering of the fields:Please add a configuration to https://orval.dev/reference/configuration/output, e.g.
sortFields = true|false
. If set tofalse
, the field order should match the order defined inopenapi.yml
. In the above example, it should be:What versions are you using?
Orval v 7.3.0
The text was updated successfully, but these errors were encountered: