You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
I love the premise of this library. I want to first thank you for your effort to put something like this together. My company is standardizing on json-schema4. I've generated contracts that pass validation of the formatting and am trying to replicate the provider-side testing.
I am following the documentation samples which shows the following for 'Testing providers by simulating consumers' (running this in irb):
NoMethodError: undefined method `validate_all' for #<Pacto::ContractSet:0x007f91d694a4c0>
I look at the code for ContractSet, and sure enough, there is not a validate_all method. In fact, grepping the entire project does not yield any reference to validate_all
What is the correct method for running validations for providers?
Thanks!
[EDIT]: I found the simulate_consumers method in ContractSet and am proceeding from here. The documentation should be updated, I will see if I can find it an submit a PR.
The text was updated successfully, but these errors were encountered:
Hi guys,
I love the premise of this library. I want to first thank you for your effort to put something like this together. My company is standardizing on json-schema4. I've generated contracts that pass validation of the formatting and am trying to replicate the provider-side testing.
I am following the documentation samples which shows the following for 'Testing providers by simulating consumers' (running this in irb):
This returns the following error:
I look at the code for
ContractSet
, and sure enough, there is not avalidate_all
method. In fact, grepping the entire project does not yield any reference tovalidate_all
What is the correct method for running validations for providers?
Thanks!
[EDIT]: I found the
simulate_consumers
method inContractSet
and am proceeding from here. The documentation should be updated, I will see if I can find it an submit a PR.The text was updated successfully, but these errors were encountered: