From 075792d49c721e9478b2d2a529f4359c2ec80e8d Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Tue, 30 Sep 2025 14:02:22 -0700 Subject: [PATCH] add discriminator for NoiseEffect The type of `NoiseEffect` is announced in the `noiseType` property. Provide a mapping to the types based on `noiseType`'s value. --- openapi/openapi.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 4a3ad40..01412cb 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -5087,6 +5087,12 @@ components: - $ref: "#/components/schemas/MonotoneNoiseEffect" - $ref: "#/components/schemas/MultitoneNoiseEffect" - $ref: "#/components/schemas/DuotoneNoiseEffect" + discriminator: + propertyName: noiseType + mapping: + MONOTONE: "#/components/schemas/MonotoneNoiseEffect" + MULTITONE: "#/components/schemas/MultitoneNoiseEffect" + DUOTONE: "#/components/schemas/DuotoneNoiseEffect" Effect: oneOf: - $ref: "#/components/schemas/DropShadowEffect"