File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ type Hasura struct {
57
57
RowsLimit uint64 `yaml:"select_limit" validate:"gt=0"`
58
58
EnableAggregations bool `yaml:"allow_aggregation"`
59
59
AddSource bool `yaml:"add_source"`
60
- Source * HasuraSource `yaml:"source" validate:"omitempty" `
60
+ Source * HasuraSource `yaml:"source"`
61
61
Rest * bool `yaml:"rest"`
62
62
}
63
63
64
64
type HasuraSource struct {
65
65
Name string `yaml:"name" validate:"required"`
66
- DatabaseHost string `yaml:"database_host" validate:"omitempty" `
67
- UsePreparedStatements bool `yaml:"use_prepared_statements"`
68
- IsolationLevel string `yaml:"isolation_level"`
66
+ DatabaseHost string `yaml:"database_host"`
67
+ UsePreparedStatements bool `yaml:"use_prepared_statements" validate:"required" `
68
+ IsolationLevel string `yaml:"isolation_level" validate:"required" `
69
69
}
70
70
71
71
// UnmarshalYAML -
You can’t perform that action at this time.
0 commit comments