leancodepl / contractsgenerator-dart

Dart contracts client generator for a CQRS API
3 stars 1 forks source link

Sort output statements #55

Closed shilangyu closed 2 years ago

shilangyu commented 2 years ago

Still thinking how to sort fields. Alphabetical sort does not make much sense, as fields are usually grouped in a meaningful order by backend guys.

jakubfijalkowski commented 2 years ago

I worry that we don't have any other option. Method that we use to list properties in a class does not document how the result is sorted. I don't think we have any way to preserve the ordering in the backend part, so the only option that we have left is to pick any kind of ordering and stick with it.

shilangyu commented 2 years ago

Leaving fields sorting for a later date.