1
1
{
2
- "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
3
- "title" : " Sherlock Target Manifest" ,
4
- "description" : " Social media targets to probe for the existence of known usernames" ,
5
- "type" : " object" ,
6
- "properties" : {
7
- "$schema" : { "type" : " string" }
8
- },
9
- "patternProperties" : {
10
- "^(?!\\ $).*?$" : {
11
- "type" : " object" ,
12
- "description" : " Target name and associated information (key should be human readable name)" ,
13
- "required" : [ " url" , " urlMain" , " errorType" , " username_claimed" ],
14
- "properties" : {
15
- "url" : { "type" : " string" },
16
- "urlMain" : { "type" : " string" },
17
- "urlProbe" : { "type" : " string" },
18
- "username_claimed" : { "type" : " string" },
19
- "regexCheck" : { "type" : " string" },
20
- "isNSFW" : { "type" : " boolean" },
21
- "headers" : { "type" : " object" },
22
- "request_payload" : { "type" : " object" },
23
- "__comment__" : {
24
- "type" : " string" ,
25
- "description" : " Used to clarify important target information if (and only if) a commit message would not suffice.\n This key should not be parsed anywhere within Sherlock."
26
- },
27
- "tags" : {
28
- "oneOf" : [
29
- { "$ref" : " #/$defs/tag" },
30
- { "type" : " array" , "items" : { "$ref" : " #/$defs/tag" } }
31
- ]
32
- },
33
- "request_method" : {
34
- "type" : " string" ,
35
- "enum" : [ " GET" , " POST" , " HEAD" , " PUT" ]
36
- },
37
- "errorType" : {
38
- "type" : " string" ,
39
- "enum" : [ " message" , " response_url" , " status_code" ]
40
- },
41
- "errorMsg" : {
42
- "oneOf" : [
43
- { "type" : " string" },
44
- { "type" : " array" , "items" : { "type" : " string" } }
45
- ]
46
- },
47
- "errorCode" : {
48
- "oneOf" : [
49
- { "type" : " integer" },
50
- { "type" : " array" , "items" : { "type" : " integer" } }
51
- ]
52
- },
53
- "errorUrl" : { "type" : " string" },
54
- "response_url" : { "type" : " string" },
55
- "aliases" : {
56
- "type" : " array" ,
57
- "items" : { "type" : " string" }
58
- }
59
- },
60
- "allOf" : [
61
- {
62
- "if" : {
63
- "properties" : { "errorType" : { "const" : " message" } }
64
- },
65
- "then" : {
66
- "required" : [ " errorMsg" ]
67
- }
68
- },
69
- {
70
- "if" : {
71
- "properties" : { "errorType" : { "const" : " response_url" } }
72
- },
73
- "then" : {
74
- "required" : [ " errorUrl" ]
75
- }
76
- },
77
- {
78
- "if" : {
79
- "properties" : { "errorType" : { "const" : " status_code" } }
80
- },
81
- "then" : {
82
- "required" : [ " errorCode" ]
83
- }
84
- }
85
- ],
86
- "additionalProperties" : false
2
+ "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
3
+ "title" : " Sherlock Target Manifest" ,
4
+ "description" : " Social media targets to probe for the existence of known usernames" ,
5
+ "type" : " object" ,
6
+ "properties" : {
7
+ "$schema" : { "type" : " string" }
8
+ },
9
+ "patternProperties" : {
10
+ "^(?!\\ $).*?$" : {
11
+ "type" : " object" ,
12
+ "description" : " Target name and associated information (key should be human readable name)" ,
13
+ "required" : [ " url" , " urlMain" , " errorType" , " username_claimed" ],
14
+ "properties" : {
15
+ "url" : { "type" : " string" },
16
+ "urlMain" : { "type" : " string" },
17
+ "urlProbe" : { "type" : " string" },
18
+ "username_claimed" : { "type" : " string" },
19
+ "regexCheck" : { "type" : " string" },
20
+ "isNSFW" : { "type" : " boolean" },
21
+ "headers" : { "type" : " object" },
22
+ "request_payload" : { "type" : " object" },
23
+ "__comment__" : {
24
+ "type" : " string" ,
25
+ "description" : " Used to clarify important target information if (and only if) a commit message would not suffice.\n This key should not be parsed anywhere within Sherlock."
26
+ },
27
+ "tags" : {
28
+ "oneOf" : [
29
+ { "$ref" : " #/$defs/tag" },
30
+ { "type" : " array" , "items" : { "$ref" : " #/$defs/tag" } }
31
+ ]
32
+ },
33
+ "request_method" : {
34
+ "type" : " string" ,
35
+ "enum" : [ " GET" , " POST" , " HEAD" , " PUT" ]
36
+ },
37
+ "errorType" : {
38
+ "type" : " string" ,
39
+ "enum" : [ " message" , " response_url" , " status_code" ]
40
+ },
41
+ "errorMsg" : {
42
+ "oneOf" : [
43
+ { "type" : " string" },
44
+ { "type" : " array" , "items" : { "type" : " string" } }
45
+ ]
46
+ },
47
+ "errorCode" : {
48
+ "oneOf" : [
49
+ { "type" : " integer" },
50
+ { "type" : " array" , "items" : { "type" : " integer" } }
51
+ ]
52
+ },
53
+ "errorUrl" : { "type" : " string" },
54
+ "response_url" : { "type" : " string" },
55
+ "aliases" : {
56
+ "type" : " array" ,
57
+ "items" : { "type" : " string" }
87
58
}
88
- },
89
- "additionalProperties" : false ,
90
- "$defs" : {
91
- "tag" : { "type" : " string" , "enum" : [ " adult" , " gaming" ] }
59
+ },
60
+ "allOf" : [
61
+ {
62
+ "if" : {
63
+ "properties" : { "errorType" : { "const" : " message" } }
64
+ },
65
+ "then" : {
66
+ "required" : [ " errorMsg" ]
67
+ }
68
+ },
69
+ {
70
+ "if" : {
71
+ "properties" : { "errorType" : { "const" : " response_url" } }
72
+ },
73
+ "then" : {
74
+ "required" : [ " errorUrl" ]
75
+ }
76
+ },
77
+ {
78
+ "if" : {
79
+ "properties" : { "errorType" : { "const" : " status_code" } }
80
+ },
81
+ "then" : {
82
+ "required" : [ " errorCode" ]
83
+ }
84
+ }
85
+ ],
86
+ "additionalProperties" : false
92
87
}
93
- }
88
+ },
89
+ "additionalProperties" : false ,
90
+ "$defs" : {
91
+ "tag" : { "type" : " string" , "enum" : [ " adult" , " gaming" ] }
92
+ }
93
+ }
0 commit comments