Skip to content

[Bug]: Swagger produces different swagger file on Linux #2947

@Chaosflo

Description

@Chaosflo

Describe the bug

We have Verify tests which compares the swagger files and notifies us if something has changed per accident.

Now we have the issue because of the addition of #2899 that this produces different results, locally (Windows) and on our Azure Pipelines (Linux). The comparison fails!

The easiest fix would be to make this optionally configurable and let the user decide.
This way I could then fixate the newline characters

Would be a very nice addition.
Thank u!
Greetings
Florian

Expected behavior

Newline Characters are configureable

Actual behavior

Newline Characters are defined by Environment.Newline which differs from the Operating System

Steps to reproduce

No response

Exception(s) (if any)

No response

Swashbuckle.AspNetCore version

6.6.2

.NET Version

net8.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions