From 963d7c5b82170630ec2c645d65a25c31228d6ba6 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Wed, 17 Aug 2022 23:27:53 -0300 Subject: [PATCH] fix: contents jsonschema Signed-off-by: Carlos A Becker --- files/files.go | 2 +- www/docs/static/schema.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/files/files.go b/files/files.go index 7d97dd04..868e7e01 100644 --- a/files/files.go +++ b/files/files.go @@ -23,7 +23,7 @@ type Content struct { type ContentFileInfo struct { Owner string `yaml:"owner,omitempty" json:"owner,omitempty"` - Group string `yaml:"group" json:"group"` + Group string `yaml:"group,omitempty" json:"group,omitempty"` Mode os.FileMode `yaml:"mode,omitempty" json:"mode,omitempty"` MTime time.Time `yaml:"mtime,omitempty" json:"mtime,omitempty"` Size int64 `yaml:"-" json:"-"` diff --git a/www/docs/static/schema.json b/www/docs/static/schema.json index 292f75ae..1f741c5e 100644 --- a/www/docs/static/schema.json +++ b/www/docs/static/schema.json @@ -306,10 +306,7 @@ } }, "additionalProperties": false, - "type": "object", - "required": [ - "group" - ] + "type": "object" }, "Contents": { "items": {