Hello, I get the following (false negative) valida...
# pactflow
t
Hello, I get the following (false negative) validation error:
We use a shared model for parts of the request body and response body. In there the
updated_at
attribute uses the
read-only
behaviour. Which indicates it is only part of the response body (where it is required), but not from the request body. For me it looks like, that the validation only checks for the
required
attribute, but not for the
behavior
attribute. Is there a quick fix for that or do I need to use two different models for the request and the response?
m
Interesting, I’m not sure we support this scenario. Could you please raise a support ticket?
smartbearsupport
s
Please create a ticket here with the issue details so that we can properly track the resolution and the PactFlow product support team will continue to work through it with you: https://support.smartbear.com/pactflow/message
t
OK, will do. Here the swagger doc for readOnly.
Request ID:
00574194
OK, will use separate models for the request and response for now.
👍 1
m
Thanks for raising, much appreciated! We'll get that onto the backlog for review. But glad you have a plan B for now.
If you're up for it, you could consider adding a PR to : https://github.com/pactflow/swagger-mock-validator Which is the core matching engine for this feature