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
Currently, each Pact must explicitly define each part of its expected response. Whilst this gives clarity on exactly what is expected, this can make them difficult to read when there are repeated Objects in a response, or even across responses. Especially when one of the 'template objects' has 30 fields and nested arrays as well'
As such it would be nice to make the protected 'putObject' methods public on both the PactDslJsonBody and the PactDslJsonArray. On the array, it would also be beneficial to be able to have a second wrapper method that allowed for the object to be added n times.
Any ideas would be much appreciated, and I will prepare a pull request.
The text was updated successfully, but these errors were encountered:
Currently, each Pact must explicitly define each part of its expected response. Whilst this gives clarity on exactly what is expected, this can make them difficult to read when there are repeated Objects in a response, or even across responses. Especially when one of the 'template objects' has 30 fields and nested arrays as well'
As such it would be nice to make the protected 'putObject' methods public on both the PactDslJsonBody and the PactDslJsonArray. On the array, it would also be beneficial to be able to have a second wrapper method that allowed for the object to be added n times.
Any ideas would be much appreciated, and I will prepare a pull request.
The text was updated successfully, but these errors were encountered: