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
Hello again @jhomswk, thank you for the comprehensive report. Utilizing the provided repository, we were able to replicate the issue and have successfully identified the root cause. We are currently working on a solution and will keep you informed of our progress.
Thank you @StarKhan6368.
There's no hurry at all, I am just exploring specmatic for contract testing.
I think it's great and would like to thank your contribution to the testing community! 👍
@jhomswk Thanks a lot for your kind words of appreciation.
While we wait for the fix, just want to highlight that Specmatic Stub server will anyway return 400 response if the query parameter that you send is not as per OpenAPI spec. If the HTTP 400 response is what matters for your use case (and not he exact schema of the response) you can put this to use even without explicitly setting an example with a schema invalid query parameter. Hope this helps.
Description:
Hi! 👋
Specmatic seems to reject external examples containing query parameters
that violate the spec even though the status code indicates an error.
Please, let me know whether I am missing something.
Thank you in advance.
Minimal Example:
🧾 OpenAPI specification:
✔️ Example that works:
❌ Example that fails:
💻 Error:
Steps To Reproduce:
I have prepared a small repository that can be used to reproduce the issue.
System Information:
The text was updated successfully, but these errors were encountered: