Venkat Konda
09/11/2023, 9:14 PMMatt (pactflow.io / pact-js / pact-go)
PhoneAddress defined twice
2. PhoneAddres.code is used, but in the definition it’s PhoneAddress.internationalCode
Could you please ideally share a full working (or in your case, failing) example that we can review?Matt (pactflow.io / pact-js / pact-go)
EditCustDetailsContactPoint:
type: object # <- try commenting this out
properties:
ContactPoint:
anyOf:
- $ref: '#/components/schemas/VerifyEndpointPhoneData'
- $ref: '#/components/schemas/VerifyEndpointEmailData'Venkat Konda
09/12/2023, 8:37 AMVenkat Konda
09/12/2023, 9:29 AMVenkat Konda
09/12/2023, 7:40 PMVenkat Konda
09/12/2023, 9:40 PMMatt (pactflow.io / pact-js / pact-go)
It turned out that the discriminator is for oneOf not for anyOf.correct. It’s to discriminate distinctly between 2 or more schemas.
anyOf doesn’t care if it matches multipleVenkat Konda
09/13/2023, 10:03 AMMatt (pactflow.io / pact-js / pact-go)
type: object and keywords.
Were you able to confirm the suggested fix above worked?Venkat Konda
09/13/2023, 12:14 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Venkat Konda
09/13/2023, 12:33 PMMatt (pactflow.io / pact-js / pact-go)