From 1723e88dcd5ad955629ea196ebb11aed86522186 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sun, 12 Jun 2022 20:03:58 -0300 Subject: [PATCH] fix: wrap_in_directory type (#3158) closes #3155 Signed-off-by: Carlos A Becker --- pkg/config/config.go | 2 +- www/docs/static/schema.json | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 4663575dc..f75c9f1ca 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -514,7 +514,7 @@ type Archive struct { Replacements map[string]string `yaml:"replacements,omitempty"` Format string `yaml:"format,omitempty"` FormatOverrides []FormatOverride `yaml:"format_overrides,omitempty"` - WrapInDirectory string `yaml:"wrap_in_directory,omitempty"` + WrapInDirectory string `yaml:"wrap_in_directory,omitempty" jsonschema:"oneof_type=string;boolean"` Files []File `yaml:"files,omitempty"` Meta bool `yaml:"meta,omitempty"` AllowDifferentBinaryCount bool `yaml:"allow_different_binary_count,omitempty"` diff --git a/www/docs/static/schema.json b/www/docs/static/schema.json index 588e3cfa7..f7a7823e8 100644 --- a/www/docs/static/schema.json +++ b/www/docs/static/schema.json @@ -175,7 +175,14 @@ "type": "array" }, "wrap_in_directory": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "type": "boolean" + } + ] }, "files": { "items": {