Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/shared/schemas/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const PlaygroundPresetRowSchema = z.object({
params_json: z.string(), // JSON serializado (parsed na rota)
created_at: z.string().datetime(),
});
export type PlaygroundPresetRow = z.infer<typeof PlaygroundPresetRowSchema>;

/** Body de POST /api/playground/presets. */
export const PlaygroundPresetCreateSchema = z.object({
Expand Down
1 change: 1 addition & 0 deletions tests/unit/playground-schemas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ test("PlaygroundPresetRowSchema: valid row parses correctly", () => {
assert.equal(result.data.id, row.id);
assert.equal(result.data.name, row.name);
assert.equal(result.data.system, "You are helpful.");
assert.equal(result.data.params_json, row.params_json);
}
});

Expand Down
Loading