From 9805ae2ee90fa39dd5f1bfd1fbc4ef07071f2911 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 8e49ea6..9925be4 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -4894,6 +4894,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