-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[Java] Fix content for enum in MultiPart (#19973) #21373
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
Conversation
please follow step 3 to update samples so that CI can verify the change |
@@ -0,0 +1,7 @@ | |||
generatorName: java | |||
outputDir: samples/client/others/java/restclient-enum-in-multipart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add this new folder to the github workflow so that ci will test it moving forward
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New folder added to https://github.com/OpenAPITools/openapi-generator/blob/master/.github/workflows/samples-java-client-jdk17.yaml as Spring needs Java 17
can you please review the CI failure when you've time? |
Had a look at For now my PR only update |
do you need help updating the samples to fix https://github.com/OpenAPITools/openapi-generator/actions/runs/15577774453/job/44161740116?pr=21373 ? |
@wing328 - It should be ok now. I have update the samples with
where i previous used
|
object ApiResponse { | ||
implicit val encoderApiResponse: Encoder[ApiResponse] = deriveEncoder[ApiResponse].mapJson(_.dropNullValues) | ||
implicit val decoderApiResponse: Decoder[ApiResponse] = deriveDecoder[ApiResponse] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there shouldn't be change to scala samples. looks like it's due to incorrect git merge/rebase
i've filed #21428 with updated samples
Fix content for enum in addPartToMultiPartBuilder.
Enum is going forward set to MediaType
text/plain
and not MediaTypeapplication/json
in MultiPartBuilder and.toString()
is used to get the value from the enum.