Skip to content

s/enum doesn't preserve order #453

Description

@lasiltan

s/enum doesn't preserve the order of the elements provided.
The order is lost at https://github.com/plumatic/schema/blob/master/src/cljc/schema/core.cljc#L295 when set is called.

This screws up ordering, for example, in swagger.

Replacing set with LinkedHashSet. would preserve order

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions