10000 Pattern Bean Validations API (JSR-303) support for Request Parameters · Issue #1901 · springfox/springfox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Pattern Bean Validations API (JSR-303) support for Request Parameters #1901
Closed
@simonamc

Description

@simonamc

It looks like #1227 aded support for @Min, @Max, @NotNull and @Size validators, these are working great although should they be added to BeanValidatorPluginsConfiguration as per schema plugins?

We would like to document parameter regex too with the @Pattern annotation.

I don't see such a plugin in sprinfox-bean-validators springfox.bean.validators.plugins.parameter. I can see that this would be trickier to implement than the other validators as springfox.documentation.builders.ParameterBuilder and springfox.documentation.service.Parameter are also missing pattern fields.

Is there a reason for the exclusion of this? If I found time to implement this would a pull request be welcome? We can almost work around this using vendorExtensions but looks like they aren't mapped as already tracked by #1657

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0