Update table schema

When exporting a diagram that contains a table with indices to JSON then importing it, an validation error occurs because the schema for the index on the table was not correctly setup leading to the file being considered an invalid json.
This commit is contained in:
Yusuf Ismail 2025-05-18 01:54:25 -05:00 committed by GitHub
parent 80fb9e5080
commit 10b7dc3283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,12 @@ export const tableSchema = {
unique: { type: "boolean" },
fields: {
type: "array",
items: { type: "string" },
items: {
type: "object", properties: {
type: { type: "string" },
value: { type: "string" }
}
},
},
},
required: ["name", "unique", "fields"],