apigee-127 / swagger-node-runner

The heart of Swagger-Node
MIT License
102 stars 124 forks source link

No error thrown on unconfigured parameters #50

Closed wilfredjonathanjames closed 8 years ago

wilfredjonathanjames commented 8 years ago
project
└─┬ swagger-express-mw@0.6.0
  └── swagger-node-runner@0.6.16

Issue: Passing an unconfigured parameter (not in swagger request schema) in a POST body doesn't throw a validation error.

Detail: Talking to the Swagger spec guys on IRC, it turns out that this "missing" behaviour isn't explicitly stated in the spec but was intended to exist, at least optionally. Does swagger-node-runner have this ability?

wilfredjonathanjames commented 8 years ago

I'm assuming this is a sway issue. There has been no way left to pass options to sway: https://github.com/theganyo/swagger-node-runner/blob/master/index.js#L185

theganyo commented 8 years ago

Yes, this will have to be addressed in Sway.

Leaving the link to the Sway issue here for posterity: https://github.com/apigee-127/sway/issues/94