Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
fix: Put example YAML from the provider in configuration block (#388)
Browse files Browse the repository at this point in the history
Co-authored-by: Kemal Hadimli <[email protected]>
  • Loading branch information
disq and disq authored Jun 27, 2022
1 parent 3dd1ede commit 1e06428
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e06428

Please sign in to comment.