Skip to content

Commit 4807c81

Browse files
committed
add PatternAlignment definition
The enumeration for `horizontalAlignment` and `verticalAlignment` within `PatternPaint` is the same. Move the definition to schemas and share it.
1 parent 04e02c3 commit 4807c81

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

openapi/openapi.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4399,6 +4399,12 @@ components:
43994399
- SATURATION
44004400
- COLOR
44014401
- LUMINOSITY
4402+
PatternAlignment:
4403+
type: string
4404+
enum:
4405+
- START
4406+
- CENTER
4407+
- END
44024408
Vector:
44034409
type: object
44044410
description: A 2d vector.
@@ -4653,19 +4659,11 @@ components:
46534659
$ref: "#/components/schemas/Vector"
46544660
description: The spacing for the pattern
46554661
horizontalAlignment:
4656-
type: string
4662+
$ref: "#/components/schemas/PatternAlignment"
46574663
description: The horizontal alignment for the pattern
4658-
enum:
4659-
- START
4660-
- CENTER
4661-
- END
46624664
verticalAlignment:
4663-
type: string
4665+
$ref: "#/components/schemas/PatternAlignment"
46644666
description: The vertical alignment for the pattern
4665-
enum:
4666-
- START
4667-
- CENTER
4668-
- END
46694667
required:
46704668
- type
46714669
- sourceNodeId

0 commit comments

Comments
 (0)