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

skipIfSpecIsUnchanged: true not working across operation systems #12460

Open
huchenhai opened this issue Sep 9, 2024 · 0 comments
Open

skipIfSpecIsUnchanged: true not working across operation systems #12460

huchenhai opened this issue Sep 9, 2024 · 0 comments

Comments

@huchenhai
Copy link

huchenhai commented Sep 9, 2024

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?

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