Using openApiValidationService

Issue #158 resolved
Former user created an issue

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)

  1. James Navin

    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 the swagger-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.

  2. Log in to comment