GetShopTV / swagger2

Swagger 2.0 data model.
http://hackage.haskell.org/package/swagger2
BSD 3-Clause "New" or "Revised" License
74 stars 59 forks source link

Tags shouldn't be sorted #165

Closed neongreen closed 5 years ago

neongreen commented 6 years ago

Currently we have _swaggerTags :: Set Tag. As the result, tags in the generated schema are sorted alphabetically. As the result, tools that rely on this order (both Swagger UI and ReDoc) show endpoint groups in an order that doesn't match the order intended by the user.

Or at least I guess so :slightly_smiling_face:

phadej commented 6 years ago

@fizruk Should we have InsOrdSet?

Sent from my iPhone

On 2 Sep 2018, at 1.54, Artyom Kazak notifications@github.com wrote:

Currently we have _swaggerTags :: Set Tag. As the result, tags in the generated schema are sorted alphabetically. As the result, tools that rely on this order (both Swagger UI and ReDoc) show endpoint groups in an order that doesn't match the order intended by the user.

Or at least I guess so 🙂

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Martoon-00 commented 5 years ago

Let me remind about this issue. Are there plans to switch to keeping tags in InsOrdSet?

phadej commented 5 years ago

I assigned this to myself, let's make this happen.