Gazal Gafoor
03/01/2023, 1:31 PMFacu Conejero
03/08/2023, 9:31 AMKripa Kurian
03/16/2023, 7:32 PMJacob Rede
04/27/2023, 9:17 PMLori Maurais
05/05/2023, 1:56 PMsagup02
06/08/2023, 11:18 AMJacob Rede
07/10/2023, 6:04 PMLori Maurais
07/13/2023, 9:24 PMJacob Rede
07/25/2023, 4:42 AM"nullable" cannot be used without "type"
Amit Wertheimer
07/25/2023, 8:11 AMDavid Hvilava
08/08/2023, 11:05 AMTõnis Ojandu
08/30/2023, 6:31 AMEytan Hanig
09/01/2023, 10:53 PMJohn Joel
09/13/2023, 7:53 PMRobert Ziembicki
10/02/2023, 1:14 PMRobert Ziembicki
10/02/2023, 1:14 PMArjun 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.