Skip to content

Commit 0b146e5

Browse files
committed
refactor(models): fix missing descriptions in generated docs
1 parent b9a322a commit 0b146e5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/models/src/lib/audit-output.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export const auditValueSchema =
1313
nonnegativeNumberSchema.describe('Raw numeric value');
1414
export const auditDisplayValueSchema = z
1515
.string()
16-
.describe("Formatted value (e.g. '0.9 s', '2.1 MB')")
17-
.optional();
16+
.optional()
17+
.describe("Formatted value (e.g. '0.9 s', '2.1 MB')");
1818

1919
export const auditDetailsSchema = z
2020
.object({

packages/models/src/lib/commit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const commitSchema = z
1111
.describe('Commit SHA (full)'),
1212
message: z.string().describe('Commit message'),
1313
date: z.coerce.date().describe('Date and time when commit was authored'),
14-
author: z.string().describe('Commit author name').trim(),
14+
author: z.string().trim().describe('Commit author name'),
1515
})
1616
.describe('Git commit');
1717

0 commit comments

Comments
 (0)