Replies: 1 comment 1 reply
-
@erwincuppens & @savage-alex, you would like to use the response example to validate?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
use-case 1
To be more concrete, we have an endpoint that is used to create a placeholder for html content. We have different types (e.g. html, image, css, script, ...) that all have some shared properties and some specific properties. Whenever we do a creation call, the request contains one of the specific types and the expected response should also contain the result for that specific type.
So when thinking about a Portman solution it would be good to be able to link the request to a specific response (e.g. by using the example names)
use-case 2
Often use OpenAPI defined examples for error responses - there might be 5 different 400 response examples)
image
As these are a set of values vs a schema, is it possible to check the response values that they are compliant.
The variation overrides can set the scenario up and we are then checking that the schema and values are compliant vs the API definition?
Beta Was this translation helpful? Give feedback.
All reactions