From 0922d33cf8401822d723bbd4d5dd9212281738d9 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 8e49ea6..30ed43d 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -5072,6 +5072,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"