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

Correlated example values #53

Merged
merged 10 commits into from
Aug 17, 2024
Merged

Correlated example values #53

merged 10 commits into from
Aug 17, 2024

Conversation

harikrishnan83
Copy link
Member

What:

Correlated examples and lookup for responses values based on request params

Why:

To reduce number of stub files required

How:

Upgrading to Specmatic 2.0.11

harikrishnan83 and others added 10 commits August 16, 2024 11:27
… type does match query filter

- Error handling to return 500 on IllegalStateException
- Updating externalised example with correlated request and response values
…product type book

- Updated specmatic.yaml to use externalised examples for contract test in addition to inline examples
- Adding lookup data for product type book in correlated externalised example
- Including number lookup in correlated example
- Organising externalised examples into folders as per the components they  belong to
- Added externalised example for product type book
- Including Specmatic JUnit5 support as "testApi" instead of "testImplementation" to transitively make core available for import because we are using the stub class from core
…field inference by name in lookup, substituting response value with request field value and simple data type declaration
…values from expectation to assert response values
@harikrishnan83 harikrishnan83 merged commit d7ba447 into main Aug 17, 2024
2 checks passed
@harikrishnan83 harikrishnan83 deleted the correlated_example_values branch August 17, 2024 17:07
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.

2 participants