summaryrefslogtreecommitdiffstats
path: root/output
diff options
context:
space:
mode:
Diffstat (limited to 'output')
-rw-r--r--output/outputFormat.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/output/outputFormat.go b/output/outputFormat.go
index 4a95c1c70..ed3426411 100644
--- a/output/outputFormat.go
+++ b/output/outputFormat.go
@@ -241,6 +241,14 @@ func DecodeFormats(mediaTypes media.Types, maps ...map[string]interface{}) (Form
return f, err
}
+ // We need values for these
+ if newOutFormat.BaseName == "" {
+ newOutFormat.BaseName = "index"
+ }
+ if newOutFormat.Rel == "" {
+ newOutFormat.Rel = "alternate"
+ }
+
f = append(f, newOutFormat)
}
}