From 1e0642877da9de8639bc1a6f1c757e82544b2259 Mon Sep 17 00:00:00 2001 From: Kemal <223029+disq@users.noreply.github.com> Date: Mon, 27 Jun 2022 12:01:31 +0100 Subject: [PATCH] fix: Put example YAML from the provider in `configuration` block (#388) Co-authored-by: Kemal Hadimli --- provider/provider.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/provider/provider.go b/provider/provider.go index bfe2a4b4..32152cb6 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -107,8 +107,15 @@ func (p *Provider) GetProviderConfig(_ context.Context, req *cqproto.GetProvider data := &yaml.Node{ Kind: yaml.MappingNode, - // HeadComment doesn't work here Content: []*yaml.Node{ + { + Kind: yaml.ScalarNode, + Value: "configuration", + }, + { + Kind: yaml.ScalarNode, + Tag: "!!null", + }, { Kind: yaml.ScalarNode, // double newline will leave only the last block of comments