@@ -40,9 +40,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
4040 return [
4141 // Media Types
4242 audit (
43- // TODO: convert to MUST after watershed
4443 '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' ,
4645 async ( ) => {
4746 const res = await fetchFn ( await getUrl ( opts . url ) , {
4847 method : 'POST' ,
@@ -255,9 +254,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
255254 ) ,
256255 ) ,
257256 audit (
258- // TODO: convert to MUST after watershed
259257 '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' ,
261259 async ( ) => {
262260 const res = await fetchFn ( await getUrl ( opts . url ) , {
263261 method : 'POST' ,
@@ -312,9 +310,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
312310 ) ,
313311 ) ,
314312 audit (
315- // TODO: convert to MUST after watershed
316313 '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' ,
318315 async ( ) => {
319316 const res = await fetchFn ( await getUrl ( opts . url ) , {
320317 method : 'POST' ,
@@ -353,8 +350,7 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
353350 ( parameter , index ) => [
354351 audit (
355352 `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` ,
358354 async ( ) => {
359355 const res = await fetchFn ( await getUrl ( opts . url ) , {
360356 method : 'POST' ,
@@ -418,9 +414,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
418414 ) ,
419415 ) ,
420416 audit (
421- // TODO: convert to MUST after watershed
422417 '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' ,
424419 async ( ) => {
425420 const res = await fetchFn ( await getUrl ( opts . url ) , {
426421 method : 'POST' ,
@@ -499,8 +494,7 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
499494 ...[ 'string' , 0 , false , [ 'array' ] ] . map ( ( invalid , index ) =>
500495 audit (
501496 `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 (
504498 invalid ,
505499 ) } {extensions} parameter`,
506500 async ( ) => {
@@ -519,9 +513,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
519513 ) ,
520514 ) ,
521515 audit (
522- // TODO: convert to MUST after watershed
523516 '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' ,
525518 async ( ) => {
526519 const res = await fetchFn ( await getUrl ( opts . url ) , {
527520 method : 'POST' ,
@@ -670,9 +663,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
670663 ) ,
671664 // Response application/graphql-response+json
672665 audit (
673- // TODO: convert to MUST after watershed
674666 '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' ,
676668 async ( ) => {
677669 const res = await fetchFn ( await getUrl ( opts . url ) , {
678670 method : 'POST' ,
@@ -722,9 +714,8 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] {
722714 } ,
723715 ) ,
724716 audit (
725- // TODO: convert to MUST after watershed
726717 '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' ,
728719 async ( ) => {
729720 const res = await fetchFn ( await getUrl ( opts . url ) , {
730721 method : 'POST' ,
0 commit comments