phoenix_swagger icon indicating copy to clipboard operation
phoenix_swagger copied to clipboard

Enforce field order

Open DenisGorbachev opened this issue 7 years ago • 2 comments

Is there a way to enforce field order? It would be better for readability than current random order:

image

DenisGorbachev avatar Aug 30 '18 17:08 DenisGorbachev

I think it could be possible if we change PhoenixSwagger.Schema.properties from a regular map type to some kind of order-preserving map type which implements Access behaviour and Poison.Encode protocol.

mbuhot avatar Aug 30 '18 22:08 mbuhot

@mbuhot That would be great - we're already getting questions about the field order from our API users

DenisGorbachev avatar Sep 01 '18 07:09 DenisGorbachev