Consumer and Provider services specification examples data should be aligned in specific scenarios #1106
Unanswered
gurubabujampala
asked this question in
Ask For Help
Replies: 1 comment
-
Hello @gurubabujampala , thanks for the details. The inline examples in OpenAPI spec act as static stubs. Please have a look at Specmatic dynamic expectations. Dynamic expectations can be set programmatically within your test (in We are also working on a feature which will allow you to setup dynamic stubbing behaviour within the OpenAPI spec itself. We will share more on this shortly. Hope this helps. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our Specmatic evaluation process, we've developed a sample use case featuring Customer Service as the requester and Order Service as the supplier.
Use Case : Customer Service initiates a request to the Order Service, seeking an order associated with a specific customer ID. Upon receiving the response, it verifies the response customer ID with input customer ID as part of validate the information.
Business Logic:
Customer service is connecting to the order service and get the order details.
Order API: GET - /orders/customer/1001 (customerId)
In the above use case given customerId is 1001 and it does not match with any customerId in the response and it's fail.
Currently, we are aligning the examples across the customer and order open API specifications to ensure the success of this particular use case. However, achieving alignment in all instances poses a significant challenge. Is there a strategy we can employ to navigate through this situation effectively?
Beta Was this translation helpful? Give feedback.
All reactions