Skip to content

Commit a2fe1ce

Browse files
ymc9claude
andauthored
chore: regenerate stale fetch-client test lite schemas (#2815)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 314d248 commit a2fe1ce

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/clients/fetch-client/test/schemas/basic/schema-lite.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class SchemaType implements SchemaDef {
1818
name: "id",
1919
type: "String",
2020
id: true,
21+
attributes: [{ name: "@default", args: [{ name: "value", value: ExpressionUtils.call("cuid") }] }] as readonly AttributeApplication[],
2122
default: ExpressionUtils.call("cuid") as FieldDefault
2223
},
2324
email: {
@@ -50,6 +51,7 @@ export class SchemaType implements SchemaDef {
5051
name: "id",
5152
type: "String",
5253
id: true,
54+
attributes: [{ name: "@default", args: [{ name: "value", value: ExpressionUtils.call("cuid") }] }] as readonly AttributeApplication[],
5355
default: ExpressionUtils.call("cuid") as FieldDefault
5456
},
5557
title: {
@@ -86,9 +88,6 @@ export class SchemaType implements SchemaDef {
8688
type: "String"
8789
}
8890
},
89-
attributes: [
90-
{ name: "@@strict" }
91-
] as readonly AttributeApplication[],
9291
strict: true
9392
}
9493
} as const;

packages/clients/fetch-client/test/schemas/no-procs/schema-lite.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/* eslint-disable */
77

8-
import { type SchemaDef, type FieldDefault, ExpressionUtils } from "@zenstackhq/schema";
8+
import { type SchemaDef, type AttributeApplication, type FieldDefault, ExpressionUtils } from "@zenstackhq/schema";
99
export class SchemaType implements SchemaDef {
1010
provider = {
1111
type: "sqlite"
@@ -18,6 +18,7 @@ export class SchemaType implements SchemaDef {
1818
name: "id",
1919
type: "String",
2020
id: true,
21+
attributes: [{ name: "@default", args: [{ name: "value", value: ExpressionUtils.call("cuid") }] }] as readonly AttributeApplication[],
2122
default: ExpressionUtils.call("cuid") as FieldDefault
2223
}
2324
},

0 commit comments

Comments
 (0)