Integrating Eager with Swagger validation code