Arjun Menon K
10/12/2023, 11:41 PMJacob Rede
10/13/2023, 6:14 PMCannot read properties of undefined (reading 'type')
but thats all we get for the error message. Does any stacktrace or line number exist for this error? Having trouble going though the provider contract to find the issue.Ruth
10/30/2023, 8:57 PMCody Jenkins
11/01/2023, 2:38 AMChristopher Atkins
01/02/2024, 9:26 PMNuno Frias
02/16/2024, 12:20 PMAlejandro Sanchez Giraldo
03/12/2024, 8:26 AMEvan Rademacher
04/17/2024, 4:23 PMTaha Shakibania
05/27/2024, 11:03 AMPK
06/04/2024, 3:45 AMGeorge Gradinariu
06/07/2024, 1:50 PMMartin Konir
06/12/2024, 8:20 AMDiego Betancur
07/29/2024, 4:44 PMNuno Frias
07/30/2024, 2:00 PMdiscriminator
I have the following example schema:
components:
schema:
full-request:
title: Full request
description: This is the full request
type: object
properties:
type:
description: Type of request
type: string
payload:
description: Request payload
type: object
oneOf:
- $ref: '#/components/schemas/ORIGIN_A'
- $ref: '#/components/schemas/ORIGIN_B'
discriminator:
propertyName: originator
required:
- type
- payload
ORIGIN_A:
type: object
schema:
allOf:
- $ref: '#/components/schemas/common'
- type: object
properties:
originator:
const: ORIGIN_A
originatorId:
$ref: '#/components/schemas/origin-id'
required:
- originator
- originatorId
ORIGIN_B:
type: object
schema:
allOf:
- $ref: '#/components/schemas/common'
- type: object
properties:
originator:
const: ORIGIN_B
required:
- originator
Pactflow is not able to handle the discriminator in this case, I get the following message:
discriminator: oneOf subschemas (or referenced schemas) must have "properties/originator"
Looking through the docs I can't understand why that isn't working.Nuno Frias
07/30/2024, 2:01 PMmapping
Tim Vahlbrock
07/30/2024, 2:54 PMMegan Honig
07/30/2024, 6:56 PMBlake Norrish
08/09/2024, 12:39 AMAisha Balogun
09/26/2024, 4:36 PMMilda
10/02/2024, 9:45 AMJacek Milewski
10/31/2024, 8:59 AMJacek Milewski
11/04/2024, 7:57 AMIs that really worth it to invest in Contract tests?
That's from people who understand contract testing, and are aware that this is limited to checking the contract only.
How would you respond?Jacek Milewski
11/28/2024, 7:38 AMismail
12/09/2024, 8:25 PMEdmund Loria
01/02/2025, 8:42 PMMarcus Couto
01/02/2025, 9:15 PMismail
01/07/2025, 8:47 AM@pactflow/pact-cypress-adapter
support only pact-specification v2? if yes, is there any way or workaround to use pact-specification v4?Matt (pactflow.io / pact-js / pact-go)
Jacek Milewski
01/08/2025, 9:08 AMSpencer
02/11/2025, 3:34 PM