You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(node-type-registry): grant_privileges type is string[][] not string[]
The JSON schema for RelationManyToMany.grant_privileges was missing items
definition, causing codegen to produce string[] instead of string[][].
The actual usage is array of [verb, columns] tuples, e.g.
[['select','*'],['insert','*']].
/* Database roles to grant privileges to. Forwarded to secure_table_provision as-is. Default: [authenticated] */
561
561
grant_roles?: string[];
562
-
/* Privilege grants for the junction table. Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns */
563
-
grant_privileges?: string[];
562
+
/* Privilege grants for the junction table as [verb, columns] tuples (e.g. [['select','*'],['insert','*']]). Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns */
563
+
grant_privileges?: string[][];
564
564
/* RLS policy type for the junction table. Forwarded to secure_table_provision as-is. NULL means no policy. */
565
565
policy_type?: string;
566
566
/* Privileges the policy applies to. Forwarded to secure_table_provision as-is. NULL means derived from grant_privileges verbs. */
"description": "Privilege grants for the junction table. Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns"
61
+
"items": {
62
+
"type": "array",
63
+
"items": {
64
+
"type": "string"
65
+
}
66
+
},
67
+
"description": "Privilege grants for the junction table as [verb, columns] tuples (e.g. [['select','*'],['insert','*']]). Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns"
0 commit comments