From 4807c816c4e162f68efb44e9cb9f3a4038235428 Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Wed, 1 Oct 2025 11:44:41 -0700 Subject: [PATCH] add PatternAlignment definition The enumeration for `horizontalAlignment` and `verticalAlignment` within `PatternPaint` is the same. Move the definition to schemas and share it. --- openapi/openapi.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 8e49ea6..f64f759 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -4399,6 +4399,12 @@ components: - SATURATION - COLOR - LUMINOSITY + PatternAlignment: + type: string + enum: + - START + - CENTER + - END Vector: type: object description: A 2d vector. @@ -4653,19 +4659,11 @@ components: $ref: "#/components/schemas/Vector" description: The spacing for the pattern horizontalAlignment: - type: string + $ref: "#/components/schemas/PatternAlignment" description: The horizontal alignment for the pattern - enum: - - START - - CENTER - - END verticalAlignment: - type: string + $ref: "#/components/schemas/PatternAlignment" description: The vertical alignment for the pattern - enum: - - START - - CENTER - - END required: - type - sourceNodeId