I would like to achieve the same using the express-openapi-validator, however, it seems like only endpoint 1 is working. What should be added to the api.yml to make endpoint2 work as well?
I have tried to set the requestBody schema for endpoint 2, but it still uses express.json().
The following two example endpoints in JS use different middleware:
I would like to achieve the same using the express-openapi-validator, however, it seems like only endpoint 1 is working. What should be added to the api.yml to make endpoint2 work as well?
I have tried to set the
requestBody
schema for endpoint 2, but it still uses express.json().