From 6a2dd9642a8e22572a2a53b158fa255657c2d45b 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 4a3ad40..a1d0012 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -4414,6 +4414,12 @@ components: - SATURATION - COLOR - LUMINOSITY + PatternAlignment: + type: string + enum: + - START + - CENTER + - END Vector: type: object description: A 2d vector. @@ -4668,19 +4674,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