cdimascio / express-openapi-validator

🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
MIT License
920 stars 211 forks source link

Question: should serdes.serialize be called when validateResponse=false #871

Open aivanov-noveo opened 1 year ago

aivanov-noveo commented 1 year ago

The current behaviour is:

  1. validateResponse=true -> serialize from serDes is called
  2. validateResponse=false -> serialize from serDes is NOT called

The documentation states that:

Serialization occurs after response schema validation

As I get it after does not mean here that if validation is turned off then a serialization does not occur at all. Please clarify that moment.