From be9ec28034c53cd930d683ffbb014a3267790c90 Mon Sep 17 00:00:00 2001 From: Nivekithan Date: Fri, 12 Sep 2025 20:29:01 +0530 Subject: [PATCH] Add as expected property to config --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index 0ff805fccd..cc8590c0a8 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -65,6 +65,10 @@ type Config struct { Plugins []Plugin `json:"plugins" yaml:"plugins"` Rules []Rule `json:"rules" yaml:"rules"` Options map[string]yaml.Node `json:"options" yaml:"options"` + + // expect `$schema` so that parsing a json file which contains `$schema` will not + // cause error + Schema string `json:"$schema,omitempty" yaml:"$schema,omitempty"` } type Server struct {