From 99e60417fc2b27fc3214a205b99386a9b6f980b6 Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Tue, 30 Sep 2025 14:05:01 -0700 Subject: [PATCH] add discriminator for BlurEffect The type of `BlurEffect` is announced in the `blurType` property. Provide a mapping to the types based on `blurType`'s value. --- openapi/openapi.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 4a3ad40..3ac13b2 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -4909,6 +4909,11 @@ components: oneOf: - $ref: "#/components/schemas/NormalBlurEffect" - $ref: "#/components/schemas/ProgressiveBlurEffect" + discriminator: + propertyName: blurType + mapping: + NORMAL: "#/components/schemas/NormalBlurEffect" + PROGRESSIVE: "#/components/schemas/ProgressiveBlurEffect" BaseBlurEffect: type: object description: Base properties shared by all blur effects