1
1
export const tableSchema = {
2
2
type : "object" ,
3
3
properties : {
4
- id : { type : "integer" } ,
4
+ id : { type : [ "integer" , "string" ] } ,
5
5
name : { type : "string" } ,
6
6
x : { type : "number" } ,
7
7
y : { type : "number" } ,
@@ -10,6 +10,7 @@ export const tableSchema = {
10
10
items : {
11
11
type : "object" ,
12
12
properties : {
13
+ id : { type : [ "integer" , "string" ] } ,
13
14
name : { type : "string" } ,
14
15
type : { type : "string" } ,
15
16
default : { type : "string" } ,
@@ -23,6 +24,7 @@ export const tableSchema = {
23
24
values : { type : "array" , items : { type : "string" } } ,
24
25
} ,
25
26
required : [
27
+ "id" ,
26
28
"name" ,
27
29
"type" ,
28
30
"default" ,
@@ -131,10 +133,10 @@ export const jsonSchema = {
131
133
items : {
132
134
type : "object" ,
133
135
properties : {
134
- startTableId : { type : "integer" } ,
135
- startFieldId : { type : "integer" } ,
136
- endTableId : { type : "integer" } ,
137
- endFieldId : { type : "integer" } ,
136
+ startTableId : { type : [ "integer" , "string" ] } ,
137
+ startFieldId : { type : [ "integer" , "string" ] } ,
138
+ endTableId : { type : [ "integer" , "string" ] } ,
139
+ endFieldId : { type : [ "integer" , "string" ] } ,
138
140
name : { type : "string" } ,
139
141
cardinality : { type : "string" } ,
140
142
updateConstraint : { type : "string" } ,
0 commit comments