CLI: Add request and response validation #555
Labels
difficulty: 4
priority: high
scope: cli
Everything related to the CLI
type: enhancement
New feature or request
Description
The CLI currently uses no validation at all. We would like the cli to use
schema
package to add validation to its modules. This will include input (request) and output (response) validation. The idea is, before making an API call, we would like to inspect the request body with the request schema. If it passes, we make the call. Similarly, when we get back a response from the API, we match the response with the response schema and print only those fields that matches the response type.Solution
We would like to implement these changes across the following modules. The changes would include updating each and every command of every module to include validation.
The text was updated successfully, but these errors were encountered: