Skip to content

Commit 55a22d8

Browse files
committed
docs: update mercurius report [skip ci]
1 parent e04b76d commit 55a22d8

File tree

1 file changed

+18
-30
lines changed

1 file changed

+18
-30
lines changed

implementations/mercurius/README.md

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ _* This report was auto-generated by graphql-http_
2222
12. MUST require a request body on POST
2323
13. SHOULD use 400 status code on missing {query} parameter when accepting application/graphql-response+json
2424
14. SHOULD use 400 status code on object {query} parameter when accepting application/graphql-response+json
25-
15. SHOULD use 400 status code on number {query} parameter when accepting application/graphql-response+json
26-
16. SHOULD use 400 status code on boolean {query} parameter when accepting application/graphql-response+json
27-
17. SHOULD use 400 status code on array {query} parameter when accepting application/graphql-response+json
25+
15. SHOULD use 400 status code on array {query} parameter when accepting application/graphql-response+json
26+
16. SHOULD use 200 status code with errors field on number {query} parameter when accepting application/json
27+
17. SHOULD use 200 status code with errors field on boolean {query} parameter when accepting application/json
2828
18. SHOULD allow string {query} parameter when accepting application/graphql-response+json
2929
19. MUST allow string {query} parameter when accepting application/json
3030
20. SHOULD use 400 status code on object {operationName} parameter when accepting application/graphql-response+json
@@ -112,25 +112,25 @@ The server _SHOULD_ support these, but is not required.
112112
```
113113
</details>
114114

115-
3. SHOULD use 200 status code with errors field on object {query} parameter when accepting application/json<br />
115+
3. SHOULD use 400 status code on number {query} parameter when accepting application/graphql-response+json<br />
116116

117117
<details>
118-
<summary>Response status code is not 200</summary>
118+
<summary>Response status code is not 400</summary>
119119

120120
```json
121121
{
122-
"statusText": "Bad Request",
123-
"status": 400,
122+
"statusText": "OK",
123+
"status": 200,
124124
"headers": {
125125
"date": "<timestamp>",
126126
"content-type": "application/json; charset=utf-8",
127-
"content-length": "64",
127+
"content-length": "61",
128128
"connection": "close"
129129
},
130130
"body": {
131131
"errors": [
132132
{
133-
"message": "body/query must be string"
133+
"message": "Must provide document."
134134
}
135135
],
136136
"data": null
@@ -139,31 +139,25 @@ The server _SHOULD_ support these, but is not required.
139139
```
140140
</details>
141141

142-
4. SHOULD use 200 status code with errors field on number {query} parameter when accepting application/json<br />
142+
4. SHOULD use 400 status code on boolean {query} parameter when accepting application/graphql-response+json<br />
143143

144144
<details>
145-
<summary>Response status code is not 200</summary>
145+
<summary>Response status code is not 400</summary>
146146

147147
```json
148148
{
149-
"statusText": "Bad Request",
150-
"status": 400,
149+
"statusText": "OK",
150+
"status": 200,
151151
"headers": {
152152
"date": "<timestamp>",
153153
"content-type": "application/json; charset=utf-8",
154-
"content-length": "110",
154+
"content-length": "61",
155155
"connection": "close"
156156
},
157157
"body": {
158158
"errors": [
159159
{
160-
"message": "Syntax Error: Unexpected Int \"0\".",
161-
"locations": [
162-
{
163-
"line": 1,
164-
"column": 1
165-
}
166-
]
160+
"message": "Must provide document."
167161
}
168162
],
169163
"data": null
@@ -172,7 +166,7 @@ The server _SHOULD_ support these, but is not required.
172166
```
173167
</details>
174168

175-
5. SHOULD use 200 status code with errors field on boolean {query} parameter when accepting application/json<br />
169+
5. SHOULD use 200 status code with errors field on object {query} parameter when accepting application/json<br />
176170

177171
<details>
178172
<summary>Response status code is not 200</summary>
@@ -184,19 +178,13 @@ The server _SHOULD_ support these, but is not required.
184178
"headers": {
185179
"date": "<timestamp>",
186180
"content-type": "application/json; charset=utf-8",
187-
"content-length": "115",
181+
"content-length": "64",
188182
"connection": "close"
189183
},
190184
"body": {
191185
"errors": [
192186
{
193-
"message": "Syntax Error: Unexpected Name \"false\".",
194-
"locations": [
195-
{
196-
"line": 1,
197-
"column": 1
198-
}
199-
]
187+
"message": "body/query must be string"
200188
}
201189
],
202190
"data": null

0 commit comments

Comments
 (0)