Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different line endings for generated swagger.json (CRLF) and swagger.yaml (LF) on Windows Git bash #893

Open
ldrahnik opened this issue Jun 26, 2023 · 0 comments

Comments

@ldrahnik
Copy link

I run in project mvn compile on Windows 11 in Git bash and are generated files swagger.json with CRLF (cat -A swagger.json displayed as ^M$) and swagger.yaml with LF (cat -A swagger.yaml displayed as $).

 <plugin>
                <groupId>com.github.kongchen</groupId>
                <artifactId>swagger-maven-plugin</artifactId>
                <version>3.1.8</version>
                <configuration>
                    <apiSources>
                        <apiSource>
                            <springmvc>false</springmvc>
                            <locations>api.controllers</locations>
                            <schemes>http,https</schemes>
                            <basePath>/api</basePath>
                            <outputFormats>json,yaml</outputFormats>
                            <info>
                                <title>API</title>
                                <version>v1</version>
                                <description></description>
                            </info>
                            <swaggerDirectory>generated/swagger-ui</swaggerDirectory>
                        </apiSource>
                    </apiSources>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant