From f9300cf80cb10bd6524cc0160ff8952592571623 Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Tue, 30 Sep 2025 14:11:53 -0700 Subject: [PATCH] add discriminator for Transition The type of `Transition` is announced in the `type` property. Provide a mapping to the types based on `type`'s value. --- openapi/openapi.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 8e49ea6..93fa739 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -6009,6 +6009,17 @@ components: oneOf: - $ref: "#/components/schemas/SimpleTransition" - $ref: "#/components/schemas/DirectionalTransition" + discriminator: + propertyName: type + mapping: + DISSOLVE: "#/components/schemas/SimpleTransition" + SMART_ANIMATE: "#/components/schemas/SimpleTransition" + SCROLL_ANIMATE: "#/components/schemas/SimpleTransition" + MOVE_IN: "#/components/schemas/DirectionalTransition" + MOVE_OUT: "#/components/schemas/DirectionalTransition" + PUSH: "#/components/schemas/DirectionalTransition" + SLIDE_IN: "#/components/schemas/DirectionalTransition" + SLIDE_OUT: "#/components/schemas/DirectionalTransition" SimpleTransition: type: object description: Describes an animation used when navigating in a prototype.