@@ -40,9 +40,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
40
40
return [
41
41
// Media Types
42
42
audit (
43
- // TODO: convert to MUST after watershed
44
43
'22EB' ,
45
- 'SHOULD accept application/graphql-response+json and match the content-type' ,
44
+ 'MUST accept application/graphql-response+json and match the content-type' ,
46
45
async ( ) => {
47
46
const res = await fetchFn ( await getUrl ( opts . url ) , {
48
47
method : 'POST' ,
@@ -255,9 +254,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
255
254
) ,
256
255
) ,
257
256
audit (
258
- // TODO: convert to MUST after watershed
259
257
'34A2' ,
260
- 'SHOULD allow string {query} parameter when accepting application/graphql-response+json' ,
258
+ 'MUST allow string {query} parameter when accepting application/graphql-response+json' ,
261
259
async ( ) => {
262
260
const res = await fetchFn ( await getUrl ( opts . url ) , {
263
261
method : 'POST' ,
@@ -312,9 +310,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
312
310
) ,
313
311
) ,
314
312
audit (
315
- // TODO: convert to MUST after watershed
316
313
'8161' ,
317
- 'SHOULD allow string {operationName} parameter when accepting application/graphql-response+json' ,
314
+ 'MUST allow string {operationName} parameter when accepting application/graphql-response+json' ,
318
315
async ( ) => {
319
316
const res = await fetchFn ( await getUrl ( opts . url ) , {
320
317
method : 'POST' ,
@@ -353,8 +350,7 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
353
350
( parameter , index ) => [
354
351
audit (
355
352
`94B${ index } ` ,
356
- // TODO: convert to MUST after watershed
357
- `SHOULD allow null {${ parameter } } parameter when accepting application/graphql-response+json` ,
353
+ `MUST allow null {${ parameter } } parameter when accepting application/graphql-response+json` ,
358
354
async ( ) => {
359
355
const res = await fetchFn ( await getUrl ( opts . url ) , {
360
356
method : 'POST' ,
@@ -418,9 +414,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
418
414
) ,
419
415
) ,
420
416
audit (
421
- // TODO: convert to MUST after watershed
422
417
'2EA1' ,
423
- 'SHOULD allow map {variables} parameter when accepting application/graphql-response+json' ,
418
+ 'MUST allow map {variables} parameter when accepting application/graphql-response+json' ,
424
419
async ( ) => {
425
420
const res = await fetchFn ( await getUrl ( opts . url ) , {
426
421
method : 'POST' ,
@@ -499,8 +494,7 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
499
494
...[ 'string' , 0 , false , [ 'array' ] ] . map ( ( invalid , index ) =>
500
495
audit (
501
496
`58B${ index } ` ,
502
- // TODO: convert to MUST after watershed
503
- `MAY use 400 status code on ${ extendedTypeof (
497
+ `MUST use 400 status code on ${ extendedTypeof (
504
498
invalid ,
505
499
) } {extensions} parameter`,
506
500
async ( ) => {
@@ -519,9 +513,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
519
513
) ,
520
514
) ,
521
515
audit (
522
- // TODO: convert to MUST after watershed
523
516
'428F' ,
524
- 'SHOULD allow map {extensions} parameter when accepting application/graphql-response+json' ,
517
+ 'MUST allow map {extensions} parameter when accepting application/graphql-response+json' ,
525
518
async ( ) => {
526
519
const res = await fetchFn ( await getUrl ( opts . url ) , {
527
520
method : 'POST' ,
@@ -670,9 +663,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
670
663
) ,
671
664
// Response application/graphql-response+json
672
665
audit (
673
- // TODO: convert to MUST after watershed
674
666
'865D' ,
675
- 'SHOULD use 4xx or 5xx status codes on document parsing failure when accepting application/graphql-response+json' ,
667
+ 'MUST use 4xx or 5xx status codes on document parsing failure when accepting application/graphql-response+json' ,
676
668
async ( ) => {
677
669
const res = await fetchFn ( await getUrl ( opts . url ) , {
678
670
method : 'POST' ,
@@ -722,9 +714,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
722
714
} ,
723
715
) ,
724
716
audit (
725
- // TODO: convert to MUST after watershed
726
717
'51FE' ,
727
- 'SHOULD use 4xx or 5xx status codes on document validation failure when accepting application/graphql-response+json' ,
718
+ 'MUST use 4xx or 5xx status codes on document validation failure when accepting application/graphql-response+json' ,
728
719
async ( ) => {
729
720
const res = await fetchFn ( await getUrl ( opts . url ) , {
730
721
method : 'POST' ,
0 commit comments