mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 10:29:11 +00:00
Fix json schemas to allow string ids
This commit is contained in:
parent
f2613139bb
commit
0e2ffc84aa
@ -1,7 +1,7 @@
|
|||||||
export const tableSchema = {
|
export const tableSchema = {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
id: { type: "integer" },
|
id: { type: ["integer", "string"] },
|
||||||
name: { type: "string" },
|
name: { type: "string" },
|
||||||
x: { type: "number" },
|
x: { type: "number" },
|
||||||
y: { type: "number" },
|
y: { type: "number" },
|
||||||
@ -10,6 +10,7 @@ export const tableSchema = {
|
|||||||
items: {
|
items: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
|
id: { type: ["integer", "string"] },
|
||||||
name: { type: "string" },
|
name: { type: "string" },
|
||||||
type: { type: "string" },
|
type: { type: "string" },
|
||||||
default: { type: "string" },
|
default: { type: "string" },
|
||||||
@ -23,6 +24,7 @@ export const tableSchema = {
|
|||||||
values: { type: "array", items: { type: "string" } },
|
values: { type: "array", items: { type: "string" } },
|
||||||
},
|
},
|
||||||
required: [
|
required: [
|
||||||
|
"id",
|
||||||
"name",
|
"name",
|
||||||
"type",
|
"type",
|
||||||
"default",
|
"default",
|
||||||
@ -131,10 +133,10 @@ export const jsonSchema = {
|
|||||||
items: {
|
items: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
startTableId: { type: "integer" },
|
startTableId: { type: ["integer", "string"] },
|
||||||
startFieldId: { type: "integer" },
|
startFieldId: { type: ["integer", "string"] },
|
||||||
endTableId: { type: "integer" },
|
endTableId: { type: ["integer", "string"] },
|
||||||
endFieldId: { type: "integer" },
|
endFieldId: { type: ["integer", "string"] },
|
||||||
name: { type: "string" },
|
name: { type: "string" },
|
||||||
cardinality: { type: "string" },
|
cardinality: { type: "string" },
|
||||||
updateConstraint: { type: "string" },
|
updateConstraint: { type: "string" },
|
||||||
|
Loading…
Reference in New Issue
Block a user