Skip to content

Commit ef4f1a8

Browse files
committedJan 26, 2025
fix: constraints.columns can be empty
1 parent 5e5266c commit ef4f1a8

File tree

13 files changed

+13
-14
lines changed

13 files changed

+13
-14
lines changed
 

‎sample/dict/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/exclude/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/font/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/hide/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/hide_not_related_column/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/mermaid/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/mssql/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/mysql/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/number/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/png/schema.json

+1-1
Large diffs are not rendered by default.

‎sample/viewpoints/schema.json

+1-1
Large diffs are not rendered by default.

‎schema/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ type Constraint struct {
102102
Def string `json:"def"`
103103
Table *string `json:"table"`
104104
ReferencedTable *string `json:"referenced_table,omitempty" yaml:"referencedTable,omitempty"`
105-
Columns []string `json:"columns"`
105+
Columns []string `json:"columns,omitempty"`
106106
ReferencedColumns []string `json:"referenced_columns,omitempty" yaml:"referencedColumns,omitempty"`
107107
Comment string `json:"comment,omitempty"`
108108
}

‎spec/tbls.schema.json_schema.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@
8181
"name",
8282
"type",
8383
"def",
84-
"table",
85-
"columns"
84+
"table"
8685
]
8786
},
8887
"Dict": {

0 commit comments

Comments
 (0)
Please sign in to comment.