RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.77k stars 1.29k forks source link

webapi2swagger randomly reorders JSON file when rebuilding (on different machines) #1197

Open OlafMerkert opened 6 years ago

OlafMerkert commented 6 years ago

In our project, we keep the swagger.json file under version control (so we can build backend and frontend independently).

Observed behaviour:

On different machines, and when implementing changes, the swagger.json files has changes in the ordering of some items:

Desired behaviour:

The JSON structure is always the same, independent of machine and changes which do not alter the logical (object) structure of the swagger specification.

asdonation commented 3 years ago

Any update on this issue? I am also experiencing it, with NSwag version 13.3