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

Change the interaction DSL #220

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Conversation

ludorival
Copy link
Owner

Overview

This pull request refactors the interaction DSL to enhance clarity and maintainability. The changes involve replacing the InteractionOptions with a new InteractionBuilder interface, providing a more flexible approach for defining interactions.

Changes

  • Introduced InteractionBuilder interface with methods description and providerState.
  • Implemented InteractionBuilderImpl to handle interaction definitions.
  • Removed InteractionOptions data class.
  • Updated interaction definitions to use description and providerState methods for setting interaction details.
  • Enhanced default interaction descriptions by incorporating request details.
  • Updated relevant documentation to reflect changes in the interaction DSL.

Impact

These changes streamline the process of defining interactions, improve the readability of the code, and produce more descriptive and clear pact files. This refactor will facilitate future enhancements and reduce potential errors in interaction setup.

@ludorival ludorival merged commit 0f1c935 into main Nov 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant