mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 02:09:17 +00:00
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:
parent
80fb9e5080
commit
10b7dc3283
@ -47,7 +47,12 @@ export const tableSchema = {
|
|||||||
unique: { type: "boolean" },
|
unique: { type: "boolean" },
|
||||||
fields: {
|
fields: {
|
||||||
type: "array",
|
type: "array",
|
||||||
items: { type: "string" },
|
items: {
|
||||||
|
type: "object", properties: {
|
||||||
|
type: { type: "string" },
|
||||||
|
value: { type: "string" }
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ["name", "unique", "fields"],
|
required: ["name", "unique", "fields"],
|
||||||
|
Loading…
Reference in New Issue
Block a user