Open ldrahnik opened 1 year ago
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 $).
mvn compile
swagger.json
cat -A swagger.json
^M$
swagger.yaml
cat -A swagger.yaml
$
<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>
I run in project
mvn compile
on Windows 11 in Git bash and are generated filesswagger.json
with CRLF (cat -A swagger.json
displayed as^M$
) andswagger.yaml
with LF (cat -A swagger.yaml
displayed as$
).