Skip to content

Commit 6a2dd96

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 887d806 commit 6a2dd96

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
@@ -4414,6 +4414,12 @@ components:
44144414
- SATURATION
44154415
- COLOR
44164416
- LUMINOSITY
4417+
PatternAlignment:
4418+
type: string
4419+
enum:
4420+
- START
4421+
- CENTER
4422+
- END
44174423
Vector:
44184424
type: object
44194425
description: A 2d vector.
@@ -4668,19 +4674,11 @@ components:
46684674
$ref: "#/components/schemas/Vector"
46694675
description: The spacing for the pattern
46704676
horizontalAlignment:
4671-
type: string
4677+
$ref: "#/components/schemas/PatternAlignment"
46724678
description: The horizontal alignment for the pattern
4673-
enum:
4674-
- START
4675-
- CENTER
4676-
- END
46774679
verticalAlignment:
4678-
type: string
4680+
$ref: "#/components/schemas/PatternAlignment"
46794681
description: The vertical alignment for the pattern
4680-
enum:
4681-
- START
4682-
- CENTER
4683-
- END
46844682
required:
46854683
- type
46864684
- sourceNodeId

0 commit comments

Comments
 (0)