mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:45:25 +00:00
Fixed jsonschema for matchertype missing String()
This commit is contained in:
parent
66dacccfb4
commit
bdf1c2010b
@ -87,15 +87,15 @@ Examples:
|
||||
```yaml
|
||||
requests:
|
||||
matchers:
|
||||
- type: 1
|
||||
- type: word
|
||||
words:
|
||||
- '[core]'
|
||||
- type: 6
|
||||
- type: dsl
|
||||
condition: and
|
||||
dsl:
|
||||
- '!contains(tolower(body), ''<html'')'
|
||||
- '!contains(tolower(body), ''<body'')'
|
||||
- type: 4
|
||||
- type: status
|
||||
status:
|
||||
- 200
|
||||
matchers-condition: and
|
||||
@ -194,7 +194,7 @@ network:
|
||||
- data: "envi\r\nquit\r\n"
|
||||
read-size: 2048
|
||||
matchers:
|
||||
- type: 1
|
||||
- type: word
|
||||
words:
|
||||
- zookeeper.version
|
||||
```
|
||||
@ -688,15 +688,15 @@ Appears in:
|
||||
|
||||
```yaml
|
||||
matchers:
|
||||
- type: 1
|
||||
- type: word
|
||||
words:
|
||||
- '[core]'
|
||||
- type: 6
|
||||
- type: dsl
|
||||
condition: and
|
||||
dsl:
|
||||
- '!contains(tolower(body), ''<html'')'
|
||||
- '!contains(tolower(body), ''<body'')'
|
||||
- type: 4
|
||||
- type: status
|
||||
status:
|
||||
- 200
|
||||
matchers-condition: and
|
||||
@ -2396,7 +2396,7 @@ inputs:
|
||||
- data: "envi\r\nquit\r\n"
|
||||
read-size: 2048
|
||||
matchers:
|
||||
- type: 1
|
||||
- type: word
|
||||
words:
|
||||
- zookeeper.version
|
||||
```
|
||||
|
||||
@ -307,12 +307,12 @@
|
||||
},
|
||||
"matchers.MatcherTypeHolder": {
|
||||
"enum": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6
|
||||
"word",
|
||||
"regex",
|
||||
"binary",
|
||||
"status",
|
||||
"size",
|
||||
"dsl"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "type of the matcher",
|
||||
|
||||
@ -86,7 +86,7 @@ func (holder MatcherTypeHolder) JSONSchemaType() *jsonschema.Type {
|
||||
Description: "Type of the matcher,enum=status,enum=size,enum=word,enum=regex,enum=binary,enum=dsl",
|
||||
}
|
||||
for _, types := range GetSupportedMatcherTypes() {
|
||||
gotType.Enum = append(gotType.Enum, types)
|
||||
gotType.Enum = append(gotType.Enum, types.String())
|
||||
}
|
||||
return gotType
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user