Skip to content

Using media type to determine correct param type when expanding param… #2404

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

Merged
merged 1 commit into from
Jun 3, 2018

Conversation

andyRokit
Copy link

What's this PR do/fix?
This PR attempts to resolve #2376 by using the media type to determine the parameter type when expanding.

Are there unit tests? If not how should this be manually tested?
The intentional change was made to OperationParameterReaderSpec.groovy. I split the "Should expand ModelAttribute request params" test into two. One for multipart, one for non-multipart. I aimed to keep any other test changes to a minimum.

Any background context you want to provide?
N/a

What are the relevant issues?
#2376

@codecov
Copy link

codecov bot commented May 8, 2018

Codecov Report

Merging #2404 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #2404      +/-   ##
============================================
+ Coverage     95.41%   95.42%   +<.01%     
- Complexity     2956     2960       +4     
============================================
  Files           336      336              
  Lines          7856     7863       +7     
  Branches        620      621       +1     
============================================
+ Hits           7496     7503       +7     
  Misses          227      227              
  Partials        133      133

@dilipkrish dilipkrish merged commit 7e7b71a into springfox:master Jun 3, 2018
@dilipkrish dilipkrish added the PR label Jun 3, 2018
@dilipkrish
Copy link
Member

Thanks @andyRokit for the PR! 🤘

@dilipkrish dilipkrish added this to the 2.9.1 milestone Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model attribute expansion should respect form/query parameter type
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy