Ryan Thomas
11/17/2022, 11:41 PMYousaf Nabi (pactflow.io)
Ryan Thomas
11/17/2022, 11:57 PMGET <https://something.contoso.com/api/v1/something/{somethingId}>
GET <https://something.contoso.com/api/v1/Something/{somethingId}>
GET
<https://something.contoso.com/api/v1/SOMETHING/{somethingId}>
GET
<https://something.contoso.com/api/v1/SomeThing/{somethingId}>
Specifying that the operation paths are case insensitive is not something that can be done at the open api schema level.
Both of these are valid and will work for our api.
// Consumer A test case
pactProvider
.given('some case')
.uponReceiving('request description')
.withRequest({
method: 'GET',
path: `/something/1`,
headers: { ... expected request headers ... }
})
// Consumer B test case
pactProvider
.given('some case')
.uponReceiving('request description')
.withRequest({
method: 'GET',
path: `/Something/1`,
headers: { ... expected request headers ... }
})
Ryan Thomas
11/17/2022, 11:58 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ryan Thomas
11/18/2022, 3:29 PMRyan Thomas
11/18/2022, 3:30 PMRyan Thomas
11/18/2022, 4:33 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ryan Thomas
11/21/2022, 2:12 PMwhere file systems are case insensitive by default)Don't know what you mean, .NET is cross platform.😝
but exposing that toggle to users is currently not something we can easily doJust out of curiosity, what's the limiting factor? Lack of support for account level configuration at the pactflow implementation of the broker?
Ryan Thomas
11/21/2022, 10:17 PMcurrently not something we can easily do - so likely it would be an all or nothing change, and the consequences of such a change would require considerationDefinitely would NOT make sense as an all or nothing change. Treating an api that does use case sensitive request paths as though it were case insensitive would definitely be the worse of the two options. If opt in isn't possible at this time then it only really makes sense as a feature request for some (hopeful) future point when opt-in is possible.