Validating bodies

Posted by / 14-Jan-2020 21:48

Validating bodies

Writable.write (_stream_writable.js:1) at write (_stream_readable.js:6) at flow (_stream_readable.js:611:7) at On Readable ( (_stream_readable.js:4) at emit Readable (_stream_readable.js:423:5) at readable Add Chunk (_stream_readable.js:166:9) at Socket.

In WSME implementation, the developers should define API parameters for each API.So if we add schema validation for v3 then we will have to remove the existing validation of parameters which is there inside of controller methods which will again break the v2 apis.Solution: Tempest tests can be added as each resource is validated against its schema.The end user will benefit from having consistent and helpful feedback, regardless of which resource they are interacting with.One possible way to validate the Cinder API is to use jsonschema similar to Nova, Keystone and Glance (

validating bodies-72validating bodies-19validating bodies-15

Depending on the content of the request body, the request should be accepted or rejected consistently.