Using openApiValidationService
Issue #158
resolved
Hello,
I am using OpenApiValidationService Class to validate HttpServletRequest object request but I don't know how to specify my swagger file using this class. I am also new to Java. Can you help me ?
Best Regards & Thanks for all your work on that library.
Comments (2)
-
-
- changed status to resolved
Closing due to inactivity.
- Log in to comment
The
OpenApiValidationService
isn't really intended for use outside the Spring MVC component.The main entry point for validating Spring MVC requests is the
OpenApiValidationInterceptor
. The README file in theswagger-request-validator-springmvc
module has examples on how to set that up.There are also examples of using the Spring MVC interceptor etc. in the
swagger-request-validator-springmvc/src/test/java
source tree.Hope that helps.