Problem with Specmatic Stub for application/xml Content Type #1151
-
Open API Spec:
example-1.json
running stub using the command specmatic --version Request payload:
Response:
The Open API spec appears correct, but the example JSON file consistently fails with the error Attribute named msgId in the request was not in the contract. I need assistance to resolve this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @premsvmm, thanks a lot for reporting this issue. There was a bug in the way Specmatic was handling attributes when one XML object referred to another XML object. This has been fixed in Specmatic's latest release, 1.3.30. Here are the logs from my test, using your sample specification. Logs from the Specmatic stub server:
Logs from the curl command invoking the stub with the expected XML request:
Please reach out to us if you any questions about this. |
Beta Was this translation helpful? Give feedback.
Hi @premsvmm, thanks a lot for reporting this issue. There was a bug in the way Specmatic was handling attributes when one XML object referred to another XML object. This has been fixed in Specmatic's latest release, 1.3.30.
Here are the logs from my test, using your sample specification.
Logs from the Specmatic stub server: