ePages-de / restdocs-api-spec

Adds API specification support to Spring REST Docs
MIT License
391 stars 103 forks source link

Limited supported constraints(PATTERN) in generated contract #242

Closed tadlakha9 closed 1 year ago

tadlakha9 commented 1 year ago

we have a pattern definition in JSON schema file, but we do not have it in generated contract file.

In the code we have support for javax.validation.constraints.Pattern but not for jakarta.validation.constraints.Pattern because of which pattern is not visible in the generated contract file.

related story for javax.validation.constraints.Pattern

tadlakha9 commented 1 year ago

any update

Kieun commented 1 year ago

The current implementation of getting regexp from the annotation has a simple bug, which is not correctly retrieve regexp from the Constraint configuration. I could fix this issue.

tadlakha9 commented 10 months ago

This fix is not working and i have seen that another ticket is opened for the same issue https://github.com/ePages-de/restdocs-api-spec/issues/257