Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to validate schema of method results, and not compare values #66

Open
mersinvald opened this issue Aug 1, 2019 · 0 comments
Open
Labels

Comments

@mersinvald
Copy link

Why?

In some cases the output of a method may be randomized, hence it's impossible to match the result value one-to-one with an examples defined in the openrpc.json schema. One way around it would be optionally dropping the value check and performing just schema check instead (to at least ensure the correct object is returned).

Possible solution

We could add the --only-validate-result-schema flag (or a shorter one) that

  • if passed without a parameter, skips value matching for all tests
  • if passed with a comma-separated list of methods, skips value matching for the provided methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant