@@ -3,8 +3,8 @@ _* This report was auto-generated by graphql-http_
3
3
# GraphQL over HTTP audit report
4
4
5
5
- ** 73** audits in total
6
- - ✅ ** 35 ** pass
7
- - ⚠️ ** 38 ** warnings (optional)
6
+ - ✅ ** 36 ** pass
7
+ - ⚠️ ** 37 ** warnings (optional)
8
8
9
9
## Passing
10
10
1 . SHOULD accept application/graphql-response+json and match the content-type
@@ -13,35 +13,36 @@ _* This report was auto-generated by graphql-http_
13
13
4 . MUST accept utf-8 encoding
14
14
5 . MUST assume utf-8 if encoding is unspecified
15
15
6 . MUST accept POST requests
16
- 7 . SHOULD respond with 4xx status code if content-type is not supplied on POST requests
17
- 8 . MUST accept application/json POST requests
18
- 9 . MUST require a request body on POST
19
- 10 . SHOULD use 400 status code on missing {query} parameter when accepting application/graphql-response+json
20
- 11 . SHOULD use 400 status code on object {query} parameter when accepting application/graphql-response+json
21
- 12 . SHOULD use 400 status code on number {query} parameter when accepting application/graphql-response+json
22
- 13 . SHOULD use 400 status code on boolean {query} parameter when accepting application/graphql-response+json
23
- 14 . SHOULD use 400 status code on array {query} parameter when accepting application/graphql-response+json
24
- 15 . SHOULD allow string {query} parameter when accepting application/graphql-response+json
25
- 16 . MUST allow string {query} parameter when accepting application/json
26
- 17 . SHOULD allow string {operationName} parameter when accepting application/graphql-response+json
27
- 18 . MUST allow string {operationName} parameter when accepting application/json
28
- 19 . SHOULD use 400 status code on string {variables} parameter when accepting application/graphql-response+json
29
- 20 . SHOULD allow map {variables} parameter when accepting application/graphql-response+json
30
- 21 . MUST allow map {variables} parameter when accepting application/json
31
- 22 . SHOULD use 400 status code on string {extensions} parameter when accepting application/graphql-response+json
32
- 23 . SHOULD allow map {extensions} parameter when accepting application/graphql-response+json
33
- 24 . MUST allow map {extensions} parameter when accepting application/json
34
- 25 . SHOULD use 4xx or 5xx status codes on JSON parsing failure when accepting application/graphql-response+json
35
- 26 . SHOULD use 400 status code on JSON parsing failure when accepting application/graphql-response+json
36
- 27 . SHOULD use 4xx or 5xx status codes if parameters are invalid when accepting application/graphql-response+json
37
- 28 . SHOULD use 400 status code if parameters are invalid when accepting application/graphql-response+json
38
- 29 . SHOULD not contain the data entry if parameters are invalid when accepting application/graphql-response+json
39
- 30 . SHOULD use 4xx or 5xx status codes on document parsing failure when accepting application/graphql-response+json
40
- 31 . SHOULD use 400 status code on document parsing failure when accepting application/graphql-response+json
41
- 32 . SHOULD not contain the data entry on document parsing failure when accepting application/graphql-response+json
42
- 33 . SHOULD use 4xx or 5xx status codes on document validation failure when accepting application/graphql-response+json
43
- 34 . SHOULD use 400 status code on document validation failure when accepting application/graphql-response+json
44
- 35 . SHOULD not contain the data entry on document validation failure when accepting application/graphql-response+json
16
+ 7 . MAY NOT allow executing mutations on GET requests
17
+ 8 . SHOULD respond with 4xx status code if content-type is not supplied on POST requests
18
+ 9 . MUST accept application/json POST requests
19
+ 10 . MUST require a request body on POST
20
+ 11 . SHOULD use 400 status code on missing {query} parameter when accepting application/graphql-response+json
21
+ 12 . SHOULD use 400 status code on object {query} parameter when accepting application/graphql-response+json
22
+ 13 . SHOULD use 400 status code on number {query} parameter when accepting application/graphql-response+json
23
+ 14 . SHOULD use 400 status code on boolean {query} parameter when accepting application/graphql-response+json
24
+ 15 . SHOULD use 400 status code on array {query} parameter when accepting application/graphql-response+json
25
+ 16 . SHOULD allow string {query} parameter when accepting application/graphql-response+json
26
+ 17 . MUST allow string {query} parameter when accepting application/json
27
+ 18 . SHOULD allow string {operationName} parameter when accepting application/graphql-response+json
28
+ 19 . MUST allow string {operationName} parameter when accepting application/json
29
+ 20 . SHOULD use 400 status code on string {variables} parameter when accepting application/graphql-response+json
30
+ 21 . SHOULD allow map {variables} parameter when accepting application/graphql-response+json
31
+ 22 . MUST allow map {variables} parameter when accepting application/json
32
+ 23 . SHOULD use 400 status code on string {extensions} parameter when accepting application/graphql-response+json
33
+ 24 . SHOULD allow map {extensions} parameter when accepting application/graphql-response+json
34
+ 25 . MUST allow map {extensions} parameter when accepting application/json
35
+ 26 . SHOULD use 4xx or 5xx status codes on JSON parsing failure when accepting application/graphql-response+json
36
+ 27 . SHOULD use 400 status code on JSON parsing failure when accepting application/graphql-response+json
37
+ 28 . SHOULD use 4xx or 5xx status codes if parameters are invalid when accepting application/graphql-response+json
38
+ 29 . SHOULD use 400 status code if parameters are invalid when accepting application/graphql-response+json
39
+ 30 . SHOULD not contain the data entry if parameters are invalid when accepting application/graphql-response+json
40
+ 31 . SHOULD use 4xx or 5xx status codes on document parsing failure when accepting application/graphql-response+json
41
+ 32 . SHOULD use 400 status code on document parsing failure when accepting application/graphql-response+json
42
+ 33 . SHOULD not contain the data entry on document parsing failure when accepting application/graphql-response+json
43
+ 34 . SHOULD use 4xx or 5xx status codes on document validation failure when accepting application/graphql-response+json
44
+ 35 . SHOULD use 400 status code on document validation failure when accepting application/graphql-response+json
45
+ 36 . SHOULD not contain the data entry on document validation failure when accepting application/graphql-response+json
45
46
46
47
## Warnings
47
48
The server _ SHOULD_ support these, but is not required.
@@ -57,143 +58,139 @@ Content-Type header "application/json; charset=utf-8" does not contain "applicat
57
58
```
58
59
Status code 400 is not 200
59
60
```
60
- 4 . MAY NOT allow executing mutations on GET requests<br />
61
- ```
62
- Status code 400 is not 405
63
- ```
64
- 5 . SHOULD use 200 status code with errors field on missing {query} parameter when accepting application/json<br />
61
+ 4 . SHOULD use 200 status code with errors field on missing {query} parameter when accepting application/json<br />
65
62
```
66
63
Status code 400 is not 200
67
64
```
68
- 6 . SHOULD use 200 status code with errors field on object {query} parameter when accepting application/json<br />
65
+ 5 . SHOULD use 200 status code with errors field on object {query} parameter when accepting application/json<br />
69
66
```
70
67
Status code 400 is not 200
71
68
```
72
- 7 . SHOULD use 200 status code with errors field on number {query} parameter when accepting application/json<br />
69
+ 6 . SHOULD use 200 status code with errors field on number {query} parameter when accepting application/json<br />
73
70
```
74
71
Status code 400 is not 200
75
72
```
76
- 8 . SHOULD use 200 status code with errors field on boolean {query} parameter when accepting application/json<br />
73
+ 7 . SHOULD use 200 status code with errors field on boolean {query} parameter when accepting application/json<br />
77
74
```
78
75
Status code 400 is not 200
79
76
```
80
- 9 . SHOULD use 200 status code with errors field on array {query} parameter when accepting application/json<br />
77
+ 8 . SHOULD use 200 status code with errors field on array {query} parameter when accepting application/json<br />
81
78
```
82
79
Status code 400 is not 200
83
80
```
84
- 10 . SHOULD use 400 status code on object {operationName} parameter when accepting application/graphql-response+json<br />
81
+ 9 . SHOULD use 400 status code on object {operationName} parameter when accepting application/graphql-response+json<br />
85
82
```
86
83
Status code 200 is not 400
87
84
```
88
- 11 . SHOULD use 400 status code on number {operationName} parameter when accepting application/graphql-response+json<br />
85
+ 10 . SHOULD use 400 status code on number {operationName} parameter when accepting application/graphql-response+json<br />
89
86
```
90
87
Status code 200 is not 400
91
88
```
92
- 12 . SHOULD use 400 status code on boolean {operationName} parameter when accepting application/graphql-response+json<br />
89
+ 11 . SHOULD use 400 status code on boolean {operationName} parameter when accepting application/graphql-response+json<br />
93
90
```
94
91
Status code 200 is not 400
95
92
```
96
- 13 . SHOULD use 400 status code on array {operationName} parameter when accepting application/graphql-response+json<br />
93
+ 12 . SHOULD use 400 status code on array {operationName} parameter when accepting application/graphql-response+json<br />
97
94
```
98
95
Status code 200 is not 400
99
96
```
100
- 14 . SHOULD use 200 status code with errors field on object {operationName} parameter when accepting application/json<br />
97
+ 13 . SHOULD use 200 status code with errors field on object {operationName} parameter when accepting application/json<br />
101
98
```
102
99
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
103
100
```
104
- 15 . SHOULD use 200 status code with errors field on number {operationName} parameter when accepting application/json<br />
101
+ 14 . SHOULD use 200 status code with errors field on number {operationName} parameter when accepting application/json<br />
105
102
```
106
103
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
107
104
```
108
- 16 . SHOULD use 200 status code with errors field on boolean {operationName} parameter when accepting application/json<br />
105
+ 15 . SHOULD use 200 status code with errors field on boolean {operationName} parameter when accepting application/json<br />
109
106
```
110
107
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
111
108
```
112
- 17 . SHOULD use 200 status code with errors field on array {operationName} parameter when accepting application/json<br />
109
+ 16 . SHOULD use 200 status code with errors field on array {operationName} parameter when accepting application/json<br />
113
110
```
114
111
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
115
112
```
116
- 18 . SHOULD use 400 status code on number {variables} parameter when accepting application/graphql-response+json<br />
113
+ 17 . SHOULD use 400 status code on number {variables} parameter when accepting application/graphql-response+json<br />
117
114
```
118
115
Status code 200 is not 400
119
116
```
120
- 19 . SHOULD use 400 status code on boolean {variables} parameter when accepting application/graphql-response+json<br />
117
+ 18 . SHOULD use 400 status code on boolean {variables} parameter when accepting application/graphql-response+json<br />
121
118
```
122
119
Status code 200 is not 400
123
120
```
124
- 20 . SHOULD use 400 status code on array {variables} parameter when accepting application/graphql-response+json<br />
121
+ 19 . SHOULD use 400 status code on array {variables} parameter when accepting application/graphql-response+json<br />
125
122
```
126
123
Status code 200 is not 400
127
124
```
128
- 21 . SHOULD use 200 status code with errors field on string {variables} parameter when accepting application/json<br />
125
+ 20 . SHOULD use 200 status code with errors field on string {variables} parameter when accepting application/json<br />
129
126
```
130
127
Status code 400 is not 200
131
128
```
132
- 22 . SHOULD use 200 status code with errors field on number {variables} parameter when accepting application/json<br />
129
+ 21 . SHOULD use 200 status code with errors field on number {variables} parameter when accepting application/json<br />
133
130
```
134
131
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
135
132
```
136
- 23 . SHOULD use 200 status code with errors field on boolean {variables} parameter when accepting application/json<br />
133
+ 22 . SHOULD use 200 status code with errors field on boolean {variables} parameter when accepting application/json<br />
137
134
```
138
135
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
139
136
```
140
- 24 . SHOULD use 200 status code with errors field on array {variables} parameter when accepting application/json<br />
137
+ 23 . SHOULD use 200 status code with errors field on array {variables} parameter when accepting application/json<br />
141
138
```
142
139
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
143
140
```
144
- 25 . MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/graphql-response+json<br />
141
+ 24 . MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/graphql-response+json<br />
145
142
```
146
143
Status code 400 is not 200
147
144
```
148
- 26 . MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/json<br />
145
+ 25 . MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/json<br />
149
146
```
150
147
Status code 400 is not 200
151
148
```
152
- 27 . SHOULD use 400 status code on number {extensions} parameter when accepting application/graphql-response+json<br />
149
+ 26 . SHOULD use 400 status code on number {extensions} parameter when accepting application/graphql-response+json<br />
153
150
```
154
151
Status code 200 is not 400
155
152
```
156
- 28 . SHOULD use 400 status code on boolean {extensions} parameter when accepting application/graphql-response+json<br />
153
+ 27 . SHOULD use 400 status code on boolean {extensions} parameter when accepting application/graphql-response+json<br />
157
154
```
158
155
Status code 200 is not 400
159
156
```
160
- 29 . SHOULD use 400 status code on array {extensions} parameter when accepting application/graphql-response+json<br />
157
+ 28 . SHOULD use 400 status code on array {extensions} parameter when accepting application/graphql-response+json<br />
161
158
```
162
159
Status code 200 is not 400
163
160
```
164
- 30 . SHOULD use 200 status code with errors field on string {extensions} parameter when accepting application/json<br />
161
+ 29 . SHOULD use 200 status code with errors field on string {extensions} parameter when accepting application/json<br />
165
162
```
166
163
Status code 400 is not 200
167
164
```
168
- 31 . SHOULD use 200 status code with errors field on number {extensions} parameter when accepting application/json<br />
165
+ 30 . SHOULD use 200 status code with errors field on number {extensions} parameter when accepting application/json<br />
169
166
```
170
167
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
171
168
```
172
- 32 . SHOULD use 200 status code with errors field on boolean {extensions} parameter when accepting application/json<br />
169
+ 31 . SHOULD use 200 status code with errors field on boolean {extensions} parameter when accepting application/json<br />
173
170
```
174
171
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
175
172
```
176
- 33 . SHOULD use 200 status code with errors field on array {extensions} parameter when accepting application/json<br />
173
+ 32 . SHOULD use 200 status code with errors field on array {extensions} parameter when accepting application/json<br />
177
174
```
178
175
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
179
176
```
180
- 34 . SHOULD use 200 status code on JSON parsing failure when accepting application/json<br />
177
+ 33 . SHOULD use 200 status code on JSON parsing failure when accepting application/json<br />
181
178
```
182
179
Status code 400 is not 200
183
180
```
184
- 35 . SHOULD use 200 status code if parameters are invalid when accepting application/json<br />
181
+ 34 . SHOULD use 200 status code if parameters are invalid when accepting application/json<br />
185
182
```
186
183
Status code 400 is not 200
187
184
```
188
- 36 . SHOULD use 200 status code on document parsing failure when accepting application/json<br />
185
+ 35 . SHOULD use 200 status code on document parsing failure when accepting application/json<br />
189
186
```
190
187
Status code 400 is not 200
191
188
```
192
- 37 . SHOULD use 200 status code on document validation failure when accepting application/json<br />
189
+ 36 . SHOULD use 200 status code on document validation failure when accepting application/json<br />
193
190
```
194
191
Status code 400 is not 200
195
192
```
196
- 38 . SHOULD not contain the data entry on JSON parsing failure when accepting application/graphql-response+json<br />
193
+ 37 . SHOULD not contain the data entry on JSON parsing failure when accepting application/graphql-response+json<br />
197
194
```
198
195
Response body is not valid JSON. Got "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>SyntaxError: Unexpected end of JSON input<br> at JSON.parse (<anonymous>)<br> at parse (/home/runner/work/graphql-http/graphql-http/node_modules/body-parser/lib/types/json.js:89:19)<br> at /home/runner/work/graphql-http/graphql-http/node_modules/body-parser/lib/read.js:128:18<br> at AsyncResource.runInAsyncScope (node:async_hooks:203:9)<br> at invokeCallback (/home/runner/work/graphql-http/graphql-http/node_modules/raw-body/index.js:231:16)<br> at done (/home/runner/work/graphql-http/graphql-http/node_modules/raw-body/index.js:220:7)<br> at IncomingMessage.onEnd (/home/runner/work/graphql-http/graphql-http/node_modules/raw-body/index.js:280:7)<br> at IncomingMessage.emit (node:events:513:28)<br> at endReadableNT (node:internal/streams/rea...
199
196
```
0 commit comments