Skip to content

Option to use LinkedHashMap instead of HashMap to preserve additionalProperties keys order #1273

@x1diablo

Description

@x1diablo

It's quite annoying that additionalProperties values lose their initial array order when json is parsed.
Since I use the same schema classes to generate json after tweaking, I can't sort them too.

I guess it will be easy to add an option to generate LinkedHashMap instead of HashMap for additionalProperties field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions