mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 18:05:27 +00:00
Auto Generate Syntax Docs + JSONSchema [Thu May 25 16:34:47 UTC 2023] 🤖
This commit is contained in:
parent
0d2d510689
commit
eba34ad56c
@ -351,6 +351,19 @@ Variables contains any variables for the current request.
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="dd">
|
||||
|
||||
<code>constants</code> <i>map[string]interface{}</i>
|
||||
|
||||
</div>
|
||||
<div class="dt">
|
||||
|
||||
Constants contains any scalar costant for the current template
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1474,6 +1474,16 @@
|
||||
"$ref": "#/definitions/variables.Variable",
|
||||
"title": "variables for the http request",
|
||||
"description": "Variables contains any variables for the current request"
|
||||
},
|
||||
"constants": {
|
||||
"patternProperties": {
|
||||
".*": {
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"title": "constant for the template",
|
||||
"description": "constants contains any constant for the template"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
||||
@ -42,7 +42,7 @@ func init() {
|
||||
TemplateDoc.Type = "Template"
|
||||
TemplateDoc.Comments[encoder.LineComment] = " Template is a YAML input file which defines all the requests and"
|
||||
TemplateDoc.Description = "Template is a YAML input file which defines all the requests and\n other metadata for a template."
|
||||
TemplateDoc.Fields = make([]encoder.Doc, 16)
|
||||
TemplateDoc.Fields = make([]encoder.Doc, 17)
|
||||
TemplateDoc.Fields[0].Name = "id"
|
||||
TemplateDoc.Fields[0].Type = "string"
|
||||
TemplateDoc.Fields[0].Note = ""
|
||||
@ -138,6 +138,11 @@ func init() {
|
||||
TemplateDoc.Fields[15].Note = ""
|
||||
TemplateDoc.Fields[15].Description = "Variables contains any variables for the current request."
|
||||
TemplateDoc.Fields[15].Comments[encoder.LineComment] = "Variables contains any variables for the current request."
|
||||
TemplateDoc.Fields[16].Name = "constants"
|
||||
TemplateDoc.Fields[16].Type = "map[string]interface{}"
|
||||
TemplateDoc.Fields[16].Note = ""
|
||||
TemplateDoc.Fields[16].Description = "Constants contains any scalar costant for the current template"
|
||||
TemplateDoc.Fields[16].Comments[encoder.LineComment] = "Constants contains any scalar costant for the current template"
|
||||
|
||||
MODELInfoDoc.Type = "model.Info"
|
||||
MODELInfoDoc.Comments[encoder.LineComment] = " Info contains metadata information about a template"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user