Skip to content

Commit 98a1609

Browse files
committed
feat(document-api): add alignment to format.apply step JSON schema
1 parent b67b909 commit 98a1609

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/document-api/src/contract/schemas.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4872,8 +4872,14 @@ const operationSchemas: Record<OperationId, OperationSchemaSet> = {
48724872
args: objectSchema(
48734873
{
48744874
inline: buildInlineRunPatchSchema(),
4875+
alignment: {
4876+
type: 'string',
4877+
enum: ['left', 'center', 'right', 'justify'],
4878+
description:
4879+
'Set paragraph alignment on the target block(s). Can be combined with inline formatting in the same step.',
4880+
},
48754881
},
4876-
['inline'],
4882+
[], // Neither field is individually required — at least one must be present
48774883
),
48784884
},
48794885
['id', 'op', 'where', 'args'],

0 commit comments

Comments
 (0)