krakenjs / swaggerize-express

Design-driven apis with swagger 2.0 and express.
Other
355 stars 81 forks source link

Replace body with validated version #55

Closed davidcl64 closed 9 years ago

davidcl64 commented 9 years ago

Related to: krakenjs/swaggerize-builder#28

After validation, the body may have changed.

For example, when using the enjoi settings:

allowUnknown: true
stripUnknown: true

Properties may be removed from the incoming request body. This change ensures the newly validated body is used instead of the original.

(Cleaned up version of krakenjs/swaggerize-express/pull#46)

tlivings commented 9 years ago

Targeted for 4.0.0.