feat: bump java clients openapi-generator to 6.0.0 #192
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context :
A bug has been fixed in the release 6.0.0 of openapi-generator.
It fixes a NPE when trying to perform a PUT with an empty body while using the ApiClient generated with openapi-generator.
Link to the fix on openapi-generator : OpenAPITools/openapi-generator#12172
In my case I am having this error when calling Hydra Admin API to accept logout request. It is building a PUT request with an empty body and it ends up with a NPE.
Idea is to upgrade openapi-generator version to include the fix in generated ory/hydra-client-java.
For a more detailed overview of the bug I have created a ticket on ory/sdk repository that is mentionent below (in Related Issue or Design Document part)
Related Issue or Design Document
Linked to bug ticket on ory/sdk : #191
Checklist
vulnerability, I confirm that I got green light (please contact security@ory.sh) from the
maintainers to push the changes.
Further comments