swagger-codegen
swagger-codegen copied to clipboard
skipIfSpecIsUnchanged: true not working across operation systems
Description
hi we are experiencing issue, the "skipIfSpecIsUnchanged: true" is not working for developers who are using windows system. The codegen always regenerates source code even there is no change under openapi.yml. However the config is working fine for MacOS developers.
Swagger-codegen version
7.6.0
Swagger declaration file content or url
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>7.6.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/api.yaml</inputSpec>
<templateDirectory>
${project.basedir}/src/main/resources/openapi/templates
</templateDirectory>
<skipIfSpecIsUnchanged>true</skipIfSpecIsUnchanged>
<generatorName>spring</generatorName>
<configOptions>
<delegatePattern>true</delegatePattern>
<useSpringBoot3>true</useSpringBoot3>
<!--<useBeanValidation>true</useBeanValidation>
<performBeanValidation>true</performBeanValidation>-->
</configOptions>
<generateSupportingFiles>true</generateSupportingFiles>
<supportingFilesToGenerate>
ApiUtil.java
</supportingFilesToGenerate>
</configuration>
</execution>
</executions>
</plugin>
Command line used for generation
mvn verify install
Suspecting if the is difference on file encoding and end of line sequence between windows and mac. and also some effect on the sha256 files under .openapi-generators folder?