Skip to content

Commit be9ec28

Browse files
committed
Add as expected property to config
1 parent 88b3cb3 commit be9ec28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/config/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ type Config struct {
6565
Plugins []Plugin `json:"plugins" yaml:"plugins"`
6666
Rules []Rule `json:"rules" yaml:"rules"`
6767
Options map[string]yaml.Node `json:"options" yaml:"options"`
68+
69+
// expect `$schema` so that parsing a json file which contains `$schema` will not
70+
// cause error
71+
Schema string `json:"$schema,omitempty" yaml:"$schema,omitempty"`
6872
}
6973

7074
type Server struct {

0 commit comments

Comments
 (0)