Tatiana Shepeleva
08/24/2023, 7:23 AMadditionalProperties: false in our schema, should we do it on each object type to be able to pass validation now?Tatiana Shepeleva
08/24/2023, 7:57 AMproperties or metadata where we expect any field to be send and we store the object as is later in the db.
Now all such fields trigger compatibility errors must NOT have additional properties even if I explicitly set additionalProperties: trueMatt (pactflow.io / pact-js / pact-go)
Tatiana Shepeleva
08/25/2023, 3:26 AMadditionalProperties can also accept a schema of allowed types, have you considered this case?yeah, but it’ll be a temporary solution for us as if tests start sending different fields in the object (and we don’t care that they change), we will have to update provider contract again. As I still want to test such a field and have a stable contract, I’d like to have a way to say “ok, I know the risks, please apply additionalProperties: true”
Tatiana Shepeleva
08/25/2023, 3:48 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
definition - it could be used in both contexts.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
additionalProperties: true .Tatiana Shepeleva
08/29/2023, 2:07 AMI’ve also realised you’re sending this on the request sideyeah, that’s true. anyway it’s the part the response side is responsible for. so, it does make sense to update the provider’s contract.
Matt (pactflow.io / pact-js / pact-go)
Tatiana Shepeleva
08/29/2023, 1:07 PMMatt (pactflow.io / pact-js / pact-go)