diff options
Diffstat (limited to 'caddyconfig')
-rw-r--r-- | caddyconfig/configadapters.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/caddyconfig/configadapters.go b/caddyconfig/configadapters.go index 1a0801f..071221f 100644 --- a/caddyconfig/configadapters.go +++ b/caddyconfig/configadapters.go @@ -27,10 +27,10 @@ type Adapter interface { // Warning represents a warning or notice related to conversion. type Warning struct { - File string - Line int - Directive string - Message string + File string `json:"file,omitempty"` + Line int `json:"line,omitempty"` + Directive string `json:"directive,omitempty"` + Message string `json:"message,omitempty"` } // JSON encodes val as JSON, returning it as a json.RawMessage. Any |