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

MediaType "loginRequestBody" should be "application/json" #1365

Closed
quaff opened this issue Dec 7, 2021 · 4 comments
Closed

MediaType "loginRequestBody" should be "application/json" #1365

quaff opened this issue Dec 7, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@quaff
Copy link

quaff commented Dec 7, 2021

RequestBody requestBody = new RequestBody().content(new Content().addMediaType("loginRequestBody", new MediaType().schema(schema)));

I have not seen any content type named loginRequestBody, and the content of request actually is application/json, am I missing something?

@bnasslahsen
Copy link
Contributor

@quaff,

Is this nice a nice to have enhancement, or are you facing an issue ?

@quaff
Copy link
Author

quaff commented Dec 8, 2021

@quaff,

Is this nice a nice to have enhancement, or are you facing an issue ?

Yes, request content type always be loginRequestBody in Swagger UI, will be rejected by server.

@bnasslahsen
Copy link
Contributor

@quaff,

I have added a fix. Don't hesitate to validate it with the latest SNAPSHOT.

@quaff
Copy link
Author

quaff commented Dec 13, 2021

It fixed now.

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants