Skip to content
This repository was archived by the owner on Jan 22, 2022. It is now read-only.

Stricter response validation #25

Open
simon-weber opened this issue Mar 31, 2012 · 0 comments
Open

Stricter response validation #25

simon-weber opened this issue Mar 31, 2012 · 0 comments

Comments

@simon-weber
Copy link
Owner

At the moment, only the structure and type of the responses are validated in protocol.WC_Protocol. However, Validictory has a whole host of other tools to use (some undocumented), and the stricter validation is, the sooner a protocol change would become apparent.

Some simple things to validate:

  • for playlists, continuation should always be False - this tests the playlist limit assumption
  • any kind of id (song, playlist, entry) can be matched against a regex, like is currently done in test.utils

Also, it's probably smart to prompt end-users to submit an issue when validations fail.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant