diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 8e49ea6..def849e 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -4681,6 +4681,16 @@ components: - $ref: "#/components/schemas/GradientPaint" - $ref: "#/components/schemas/ImagePaint" - $ref: "#/components/schemas/PatternPaint" + discriminator: + propertyName: type + mapping: + SOLID: "#/components/schemas/SolidPaint" + GRADIENT_LINEAR: "#/components/schemas/GradientPaint" + GRADIENT_RADIAL: "#/components/schemas/GradientPaint" + GRADIENT_ANGULAR: "#/components/schemas/GradientPaint" + GRADIENT_DIAMOND: "#/components/schemas/GradientPaint" + IMAGE: "#/components/schemas/ImagePaint" + PATTERN: "#/components/schemas/PatternPaint" LayoutConstraint: type: object description: Layout constraint relative to containing Frame