Auto Generate Syntax Docs + JSONSchema [Mon Oct 14 15:26:08 UTC 2024] 🤖

This commit is contained in:
ghost 2024-10-14 15:26:08 +00:00
parent 98948d0266
commit 159a8a53cf
3 changed files with 24 additions and 1 deletions

View File

@ -3223,6 +3223,19 @@ read-all: false
<hr /> <hr />
<div class="dd">
<code>stop-at-first-match</code> <i>bool</i>
</div>
<div class="dt">
StopAtFirstMatch stops the execution of the requests and template as soon as a match is found.
</div>
<hr />

View File

@ -1370,6 +1370,11 @@
"title": "read all response stream", "title": "read all response stream",
"description": "Read all response stream till the server stops sending" "description": "Read all response stream till the server stops sending"
}, },
"stop-at-first-match": {
"type": "boolean",
"title": "stop at first match",
"description": "Stop the execution after a match is found"
},
"matchers": { "matchers": {
"items": { "items": {
"$ref": "#/$defs/matchers.Matcher" "$ref": "#/$defs/matchers.Matcher"

View File

@ -1334,7 +1334,7 @@ func init() {
Value: "Full Network protocol data", Value: "Full Network protocol data",
}, },
} }
NETWORKRequestDoc.Fields = make([]encoder.Doc, 10) NETWORKRequestDoc.Fields = make([]encoder.Doc, 11)
NETWORKRequestDoc.Fields[0].Name = "id" NETWORKRequestDoc.Fields[0].Name = "id"
NETWORKRequestDoc.Fields[0].Type = "string" NETWORKRequestDoc.Fields[0].Type = "string"
NETWORKRequestDoc.Fields[0].Note = "" NETWORKRequestDoc.Fields[0].Note = ""
@ -1393,6 +1393,11 @@ func init() {
NETWORKRequestDoc.Fields[9].Comments[encoder.LineComment] = "ReadAll determines if the data stream should be read till the end regardless of the size" NETWORKRequestDoc.Fields[9].Comments[encoder.LineComment] = "ReadAll determines if the data stream should be read till the end regardless of the size"
NETWORKRequestDoc.Fields[9].AddExample("", false) NETWORKRequestDoc.Fields[9].AddExample("", false)
NETWORKRequestDoc.Fields[10].Name = "stop-at-first-match"
NETWORKRequestDoc.Fields[10].Type = "bool"
NETWORKRequestDoc.Fields[10].Note = ""
NETWORKRequestDoc.Fields[10].Description = "StopAtFirstMatch stops the execution of the requests and template as soon as a match is found."
NETWORKRequestDoc.Fields[10].Comments[encoder.LineComment] = "StopAtFirstMatch stops the execution of the requests and template as soon as a match is found."
NETWORKInputDoc.Type = "network.Input" NETWORKInputDoc.Type = "network.Input"
NETWORKInputDoc.Comments[encoder.LineComment] = "" NETWORKInputDoc.Comments[encoder.LineComment] = ""