-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[jaxrs-cfx][server] bin/jaxrs-cxf-petstore-server.sh does not generate required files #451
Comments
Thank you a lot for this investigation. In my opinion the generator works as expected, because in a real project it is a good practice to split:
This pattern is discussed in #426 For our My opinion/vision is that everything inside I have seen that other openapi-generator/bin/java-petstore-feign.sh Lines 32 to 34 in d6e950f
In my opinion it is OK to delete stuff in |
@jmini Thanks for the reply. It's useful to understand the reasoning for this. I agree it would be nice to delete the entire I've created a PR for review given your comment above: #452 |
Description
When adding new tests, builds fail because new endpoints are not added to
samples/server/petstore/jaxrs-cxf
This happens because many files exist and thus are not overwritten.
This is generated by
bin/jaxrs-cxf-petstore-server.sh
which is run by all three of the following:An example of this is here:
#382 (comment)
openapi-generator version
3.0.3
OpenAPI declaration file content or url
https://github.com/grokify/openapi-generator/blob/go/client/fix/file-for-schema-definition-name/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
Command line used for generation
Any of the following:
Steps to reproduce
Generate jaxrs-cxf sample with new endpoint and commit.
Here is an example:
https://circleci.com/gh/grokify/openapi-generator/38
Related issues/PRs
This has been experienced when adding new endpoints to the Petstore spec for testing.
file
#433Suggest a fix/enhancement
A simple fix is to remove the output directory first as described below. This approach has worked for me twice now, however, it seems a more generic solution may be to use
.openapi-generator-ignore
and replacewriteOptional
. I've taken a quick look and will examine more.The text was updated successfully, but these errors were encountered: