Open kchojn opened 2 years ago
In case someone is still looking for solution.
You have to add extensions:"x-order=N"
tag next to the field:
type Character struct {
Name map[languages.Language]string `json:"name" extensions:"x-order=0"`
Description map[languages.Language]string `json:"desctiption" extensions:"x-order=1"`
// etc...
}
Hello, Is it possible to keep the default order of the structure in the documentation?
Example:
Unfortunately, in the documentation, it displays alphabetically to me (why?). Is it possible to change this?
Regards!