Auto Generate Syntax Docs + JSONSchema [Wed Sep 1 10:24:55 UTC 2021] 🤖

This commit is contained in:
GitHub Action 2021-09-01 10:24:55 +00:00
parent 698390f7d0
commit 04e636075e
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ Examples:
```yaml
# ID Example
id: cve-2021-19520
id: CVE-2021-19520
```

View File

@ -37,7 +37,7 @@ func init() {
TemplateDoc.Fields[0].Description = "ID is the unique id for the template.\n\n#### Good IDs\n\nA good ID uniquely identifies what the requests in the template\nare doing. Let's say you have a template that identifies a git-config\nfile on the webservers, a good name would be `git-config-exposure`. Another\nexample name is `azure-apps-nxdomain-takeover`."
TemplateDoc.Fields[0].Comments[encoder.LineComment] = "ID is the unique id for the template."
TemplateDoc.Fields[0].AddExample("ID Example", "cve-2021-19520")
TemplateDoc.Fields[0].AddExample("ID Example", "CVE-2021-19520")
TemplateDoc.Fields[1].Name = "info"
TemplateDoc.Fields[1].Type = "model.Info"
TemplateDoc.Fields[1].Note = ""