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
@jhomswk Thanks again for the detailed bug report. Really appreciate the sample repo.
This issue looks quite similar to #1494 (the difference being that here the empty body is not being accepted for 400 response examples) and here is a link to a comment I have added on that issue. Even here even if you do to explicitly set a 400 example with empty body, Specmatic Stub server will already return 400 for such requests. Hope this helps.
Description:
Hi! 👋
Specmatic seems to reject external examples containing invalid requests without body
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 1 - valid request - works:
✔️ Example 2 - invalid id - works:
✔️ Example 3 - missing id - works:
❌ Example 4 - missing body - 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: