From ab048c2694e015109636f0d1ce39bbec87f490bc Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 3 Jan 2024 23:26:15 +0100 Subject: [PATCH] docs: fix default value property in data file --- cmd/wp-github-comment/templates/docs-data.yaml.tmpl | 2 +- docs/data/data.yaml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/wp-github-comment/templates/docs-data.yaml.tmpl b/cmd/wp-github-comment/templates/docs-data.yaml.tmpl index 7342910..e453a95 100644 --- a/cmd/wp-github-comment/templates/docs-data.yaml.tmpl +++ b/cmd/wp-github-comment/templates/docs-data.yaml.tmpl @@ -11,7 +11,7 @@ properties: type: {{ . }} {{- end }} {{- with $v.Default }} - defaultvalue: {{ . }} + defaultValue: {{ . }} {{- end }} required: {{ default false $v.Required }} {{ end -}} diff --git a/docs/data/data.yaml b/docs/data/data.yaml index ba8798f..09e47e7 100644 --- a/docs/data/data.yaml +++ b/docs/data/data.yaml @@ -12,7 +12,7 @@ properties: Only need to be changed for GitHub enterprise in most cases. type: string - defaultvalue: "https://api.github.com/" + defaultValue: "https://api.github.com/" required: false - name: key @@ -33,13 +33,12 @@ properties: description: | Skip comment creation if the given message file does not exist. type: bool - defaultvalue: false + defaultValue: false required: false - name: update description: | Enable update of an existing comment that matches the key. - defaultValue: false type: bool - defaultvalue: false + defaultValue: false required: false