8000 #1296: Adding Pattern annotation support by ashutosh-shirole · Pull Request #1316 · springfox/springfox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

#1296: Adding Pattern annotation support #1316

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 3 commits into from
May 20, 2016

Conversation

ashutosh-shirole
Copy link

What's this PR do/fix?

Provide support for @pattern annotation of JSR-303. #1296

Are there unit tests? If not how should this be manually tested?

There are new Unit tests added for Pattern tests, Similar to SizeAnnotation plugin.

Any background context you want to provide?

Some changes had to be made in core module. ModelPropertyBuilder, ModelProperty from springfox-core and ModelMapper from springfox-swagger2 and their tests had to be changed.

What are the relevant issues?

#1296 and #1314

@dilipkrish dilipkrish added the PR label May 17, 2016
@dilipkrish dilipkrish added this to the 2.5.0 milestone May 17, 2016
* @author : ashutosh
* 29/04/2016
*/
public class PatternTestModel {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably it would be good to add here an example when we have both annotations @Size and @Pattern assigned to one field and check that both information is kept in the context? This might help to understand to somebody who will be interesting how it should work in this specific case. How do you think?

@dilipkrish dilipkrish merged commit 6802752 into springfox:master May 20, 2016
@dilipkrish
Copy link
Member

Thanks for the pr! More importantly thanks for working together to get this working @ashutosh-shirole and @igor-sokolov! Sorry it took so long.

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.

4 participants
0