From d3f06ec68fc99a8c5382204b23e0df377ba9b9ae Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 28 Feb 2022 07:41:00 +0000 Subject: [PATCH] Auto Generate Syntax Docs + JSONSchema [Mon Feb 28 07:41:00 UTC 2022] :robot: --- SYNTAX-REFERENCE.md | 2 +- nuclei-jsonschema.json | 2 +- v2/pkg/templates/templates_doc.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md index 06a1ace3..b42f2d68 100755 --- a/SYNTAX-REFERENCE.md +++ b/SYNTAX-REFERENCE.md @@ -489,7 +489,7 @@ Severity of the template.
-metadata map[string]string +metadata map[string]interface{}
diff --git a/nuclei-jsonschema.json b/nuclei-jsonschema.json index fcfa8675..4362b235 100755 --- a/nuclei-jsonschema.json +++ b/nuclei-jsonschema.json @@ -72,7 +72,7 @@ "metadata": { "patternProperties": { ".*": { - "type": "string" + "additionalProperties": true } }, "type": "object", diff --git a/v2/pkg/templates/templates_doc.go b/v2/pkg/templates/templates_doc.go index 9d9218a3..dcb2739a 100644 --- a/v2/pkg/templates/templates_doc.go +++ b/v2/pkg/templates/templates_doc.go @@ -188,7 +188,7 @@ func init() { MODELInfoDoc.Fields[5].Description = "Severity of the template." MODELInfoDoc.Fields[5].Comments[encoder.LineComment] = "Severity of the template." MODELInfoDoc.Fields[6].Name = "metadata" - MODELInfoDoc.Fields[6].Type = "map[string]string" + MODELInfoDoc.Fields[6].Type = "map[string]interface{}" MODELInfoDoc.Fields[6].Note = "" MODELInfoDoc.Fields[6].Description = "Metadata of the template." MODELInfoDoc.Fields[6].Comments[encoder.LineComment] = "Metadata of the template."