From 8d2ed565f1f3a20d69a20ac58cb917c270ea9649 Mon Sep 17 00:00:00 2001 From: enisdenjo Date: Wed, 29 Mar 2023 18:11:20 +0200 Subject: [PATCH 1/4] utf-8 emojies --- src/audits/server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/audits/server.ts b/src/audits/server.ts index 90398fba..2087554f 100644 --- a/src/audits/server.ts +++ b/src/audits/server.ts @@ -125,7 +125,9 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] { headers: { 'content-type': 'application/json; charset=utf-8', }, - body: JSON.stringify({ query: '{ __typename }' }), + body: JSON.stringify({ + query: '{ __type(name: "Run🏃Swim🏊") { name } ', + }), }); ressert(res).status.toBe(200); From 4374a9f28262a4d3fbb82bdf8a7b153ed4ddb942 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Mar 2023 16:43:59 +0000 Subject: [PATCH 2/4] docs(implementations): audit report [skip ci] --- README.md | 5 -- implementations/apollo-server/README.md | 57 ++++++++++++++++++++- implementations/apollo-server/report.json | 4 +- implementations/express-graphql/README.md | 39 +++++++++++++- implementations/express-graphql/report.json | 4 +- implementations/graphql-helix/README.md | 38 +++++++++++++- implementations/graphql-helix/report.json | 4 +- implementations/hotchocolate/README.md | 41 ++++++++++++++- implementations/hotchocolate/report.json | 4 +- implementations/mercurius/README.md | 35 +++++++++++-- implementations/mercurius/report.json | 4 +- implementations/pioneer/README.md | 32 +++++++++++- implementations/pioneer/report.json | 4 +- implementations/postgraphile/README.md | 37 ++++++++++++- implementations/postgraphile/report.json | 4 +- 15 files changed, 278 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 27f1cca4..499750ce 100644 --- a/README.md +++ b/README.md @@ -782,14 +782,9 @@ Their compliance with the [GraphQL over HTTP spec](https://graphql.github.io/gra | Name | Audit | |------|-------| -| [apollo-server](https://www.apollographql.com/docs/apollo-server) | [✅ Compliant](/implementations/apollo-server/README.md) | | [deno](https://deno.com/blog/build-a-graphql-server-with-deno) | [✅ Compliant](/implementations/deno/README.md) | | [graph-client](https://github.com/graphprotocol/graph-client) | [✅ Compliant](/implementations/graph-client/README.md) | -| [graphql-helix](https://www.graphql-helix.com) | [✅ Compliant](/implementations/graphql-helix/README.md) | | [graphql-yoga](https://www.the-guild.dev/graphql/yoga-server) | [✅ Compliant](/implementations/graphql-yoga/README.md) | -| [hotchocolate](https://chillicream.com/docs/hotchocolate) | [✅ Compliant](/implementations/hotchocolate/README.md) | -| [pioneer](https://pioneer.dexclaimation.com) | [✅ Compliant](/implementations/pioneer/README.md) | -| [postgraphile](https://www.graphile.org/postgraphile) | [✅ Compliant](/implementations/postgraphile/README.md) | diff --git a/implementations/apollo-server/README.md b/implementations/apollo-server/README.md index 82b7a0b5..dbf22890 100644 --- a/implementations/apollo-server/README.md +++ b/implementations/apollo-server/README.md @@ -4,8 +4,9 @@

Passing

@@ -14,7 +15,6 @@
  • 4655 MUST accept application/json and match the content-type
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 82A3 MUST use utf-8 encoding when responding
  • -
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 9C48 MAY NOT allow executing mutations on GET requests
  • @@ -1114,3 +1114,56 @@ The server SHOULD support these, but is not required. +

    Errors

    +The server MUST support these. +
      +
    1. BF61 MUST accept utf-8 encoded request +
      +Response status code is not 200 +
      {
      +  "statusText": "Bad Request",
      +  "status": 400,
      +  "headers": {
      +    "x-powered-by": "Express",
      +    "etag": "W/\"5a0-kpydp3r1O/Ny3fpcwJRuZER6zBw\"",
      +    "date": "",
      +    "content-type": "application/json; charset=utf-8",
      +    "content-length": "1440",
      +    "connection": "close",
      +    "cache-control": "no-store",
      +    "access-control-allow-origin": "*"
      +  },
      +  "body": {
      +    "errors": [
      +      {
      +        "message": "Syntax Error: Expected Name, found .",
      +        "locations": [
      +          {
      +            "line": 1,
      +            "column": 40
      +          }
      +        ],
      +        "extensions": {
      +          "stacktrace": [
      +            "GraphQLError: Syntax Error: Expected Name, found .",
      +            "    at syntaxError (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/error/syntaxError.js:15:10)",
      +            "    at Parser.expectToken (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:1397:40)",
      +            "    at Parser.parseName (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:108:24)",
      +            "    at Parser.parseField (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:347:30)",
      +            "    at Parser.parseSelection (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:337:14)",
      +            "    at Parser.many (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:1511:26)",
      +            "    at Parser.parseSelectionSet (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:320:24)",
      +            "    at Parser.parseOperationDefinition (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:231:28)",
      +            "    at Parser.parseDefinition (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:155:19)",
      +            "    at Parser.many (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:1511:26)"
      +          ],
      +          "code": "GRAPHQL_PARSE_FAILED"
      +        }
      +      }
      +    ]
      +  }
      +}
      +
      +
      +
    2. +
    diff --git a/implementations/apollo-server/report.json b/implementations/apollo-server/report.json index 2eef84c1..26a51407 100644 --- a/implementations/apollo-server/report.json +++ b/implementations/apollo-server/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 54, + "ok": 53, "warn": 26, - "error": 0 + "error": 1 } diff --git a/implementations/express-graphql/README.md b/implementations/express-graphql/README.md index ebb5d761..8a696513 100644 --- a/implementations/express-graphql/README.md +++ b/implementations/express-graphql/README.md @@ -4,8 +4,9 @@

    Passing

    @@ -14,7 +15,6 @@
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 80D8 SHOULD assume application/json content-type when accept is missing
  • 82A3 MUST use utf-8 encoding when responding
  • -
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -894,3 +894,38 @@ The server SHOULD support these, but is not required. +

    Errors

    +The server MUST support these. +
      +
    1. BF61 MUST accept utf-8 encoded request +
      +Response status code is not 200 +
      {
      +  "statusText": "Bad Request",
      +  "status": 400,
      +  "headers": {
      +    "x-powered-by": "Express",
      +    "etag": "W/\"69-8+mmXUXYV+Ue+OyUs6Ws9j43h3A\"",
      +    "date": "",
      +    "content-type": "application/json; charset=utf-8",
      +    "content-length": "105",
      +    "connection": "close"
      +  },
      +  "body": {
      +    "errors": [
      +      {
      +        "message": "Syntax Error: Expected Name, found .",
      +        "locations": [
      +          {
      +            "line": 1,
      +            "column": 40
      +          }
      +        ]
      +      }
      +    ]
      +  }
      +}
      +
      +
      +
    2. +
    diff --git a/implementations/express-graphql/report.json b/implementations/express-graphql/report.json index b596dba4..3a1313d9 100644 --- a/implementations/express-graphql/report.json +++ b/implementations/express-graphql/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 46, + "ok": 45, "warn": 34, - "error": 0 + "error": 1 } diff --git a/implementations/graphql-helix/README.md b/implementations/graphql-helix/README.md index 1b83b902..3ae6ad30 100644 --- a/implementations/graphql-helix/README.md +++ b/implementations/graphql-helix/README.md @@ -4,8 +4,9 @@

    Passing

    @@ -14,7 +15,6 @@
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 80D8 SHOULD assume application/json content-type when accept is missing
  • 82A3 MUST use utf-8 encoding when responding
  • -
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -772,3 +772,37 @@ The server SHOULD support these, but is not required. +

    Errors

    +The server MUST support these. +
      +
    1. BF61 MUST accept utf-8 encoded request +
      +Response status code is not 200 +
      {
      +  "statusText": "Bad Request",
      +  "status": 400,
      +  "headers": {
      +    "x-powered-by": "Express",
      +    "date": "",
      +    "content-type": "application/json",
      +    "content-length": "105",
      +    "connection": "close"
      +  },
      +  "body": {
      +    "errors": [
      +      {
      +        "message": "Syntax Error: Expected Name, found .",
      +        "locations": [
      +          {
      +            "line": 1,
      +            "column": 40
      +          }
      +        ]
      +      }
      +    ]
      +  }
      +}
      +
      +
      +
    2. +
    diff --git a/implementations/graphql-helix/report.json b/implementations/graphql-helix/report.json index 416173e9..75abe3e3 100644 --- a/implementations/graphql-helix/report.json +++ b/implementations/graphql-helix/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 50, + "ok": 49, "warn": 30, - "error": 0 + "error": 1 } diff --git a/implementations/hotchocolate/README.md b/implementations/hotchocolate/README.md index 36daca25..d87a702f 100644 --- a/implementations/hotchocolate/README.md +++ b/implementations/hotchocolate/README.md @@ -4,8 +4,9 @@

    Passing

    @@ -13,7 +14,6 @@
  • 22EB SHOULD accept application/graphql-response+json and match the content-type
  • 4655 MUST accept application/json and match the content-type
  • 82A3 MUST use utf-8 encoding when responding
  • -
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -139,3 +139,40 @@ The server SHOULD support these, but is not required. +

    Errors

    +The server MUST support these. +
      +
    1. BF61 MUST accept utf-8 encoded request +
      +Response status code is not 200 +
      {
      +  "statusText": "Bad Request",
      +  "status": 400,
      +  "headers": {
      +    "transfer-encoding": "chunked",
      +    "server": "Kestrel",
      +    "date": "",
      +    "content-type": "application/graphql-response+json;charset=utf-8",
      +    "connection": "close"
      +  },
      +  "body": {
      +    "errors": [
      +      {
      +        "message": "Expected a `Name`-token, but found a `EndOfFile`-token.",
      +        "locations": [
      +          {
      +            "line": 1,
      +            "column": 44
      +          }
      +        ],
      +        "extensions": {
      +          "code": "HC0011"
      +        }
      +      }
      +    ]
      +  }
      +}
      +
      +
      +
    2. +
    diff --git a/implementations/hotchocolate/report.json b/implementations/hotchocolate/report.json index 623461ce..93ef7a4b 100644 --- a/implementations/hotchocolate/report.json +++ b/implementations/hotchocolate/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 78, + "ok": 77, "warn": 2, - "error": 0 + "error": 1 } diff --git a/implementations/mercurius/README.md b/implementations/mercurius/README.md index 145fd319..e1e70392 100644 --- a/implementations/mercurius/README.md +++ b/implementations/mercurius/README.md @@ -4,9 +4,9 @@

    Passing

    @@ -15,7 +15,6 @@
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 80D8 SHOULD assume application/json content-type when accept is missing
  • 82A3 MUST use utf-8 encoding when responding
  • -
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -797,6 +796,36 @@ The server SHOULD support these, but is not required.

    Errors

    The server MUST support these.
      +
    1. BF61 MUST accept utf-8 encoded request +
      +Response status code is not 200 +
      {
      +  "statusText": "Bad Request",
      +  "status": 400,
      +  "headers": {
      +    "date": "",
      +    "content-type": "application/json; charset=utf-8",
      +    "content-length": "117",
      +    "connection": "close"
      +  },
      +  "body": {
      +    "errors": [
      +      {
      +        "message": "Syntax Error: Expected Name, found .",
      +        "locations": [
      +          {
      +            "line": 1,
      +            "column": 40
      +          }
      +        ]
      +      }
      +    ],
      +    "data": null
      +  }
      +}
      +
      +
      +
    2. 0222 MUST allow null {extensions} parameter when accepting application/json
      Response status code is not 200 diff --git a/implementations/mercurius/report.json b/implementations/mercurius/report.json index 14e6ec36..6b519e31 100644 --- a/implementations/mercurius/report.json +++ b/implementations/mercurius/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 50, + "ok": 49, "warn": 29, - "error": 1 + "error": 2 } diff --git a/implementations/pioneer/README.md b/implementations/pioneer/README.md index 8862063b..622aa7b9 100644 --- a/implementations/pioneer/README.md +++ b/implementations/pioneer/README.md @@ -4,8 +4,9 @@
      • 80 audits in total
      • -
      • 76 pass
      • +
      • 75 pass
      • ⚠️ 4 warnings (optional)
      • +
      • 1 errors (required)

      Passing

      @@ -15,7 +16,6 @@
    3. 47DE SHOULD accept */* and use application/json for the content-type
    4. 80D8 SHOULD assume application/json content-type when accept is missing
    5. 82A3 MUST use utf-8 encoding when responding
    6. -
    7. BF61 MUST accept utf-8 encoded request
    8. 78D5 MUST assume utf-8 in request if encoding is unspecified
    9. 2C94 MUST accept POST requests
    10. 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
    11. @@ -195,3 +195,31 @@ The server SHOULD support these, but is not required.
    +

    Errors

    +The server MUST support these. +
      +
    1. BF61 MUST accept utf-8 encoded request +
      +Response status code is not 200 +
      {
      +  "statusText": "Bad Request",
      +  "status": 400,
      +  "headers": {
      +    "date": "",
      +    "content-type": "application/json; charset=utf-8",
      +    "content-length": "95",
      +    "connection": "close"
      +  },
      +  "body": {
      +    "errors": [
      +      {
      +        "path": [],
      +        "message": "Operation of this type is not allowed and has been blocked"
      +      }
      +    ]
      +  }
      +}
      +
      +
      +
    2. +
    diff --git a/implementations/pioneer/report.json b/implementations/pioneer/report.json index 484cdabd..7bd57363 100644 --- a/implementations/pioneer/report.json +++ b/implementations/pioneer/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 76, + "ok": 75, "warn": 4, - "error": 0 + "error": 1 } diff --git a/implementations/postgraphile/README.md b/implementations/postgraphile/README.md index 37ebdd5f..0d3d162e 100644 --- a/implementations/postgraphile/README.md +++ b/implementations/postgraphile/README.md @@ -4,8 +4,9 @@

    Passing

    @@ -13,7 +14,6 @@
  • 4655 MUST accept application/json and match the content-type
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 82A3 MUST use utf-8 encoding when responding
  • -
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 9C48 MAY NOT allow executing mutations on GET requests
  • @@ -845,3 +845,36 @@ The server SHOULD support these, but is not required. +

    Errors

    +The server MUST support these. +
      +
    1. BF61 MUST accept utf-8 encoded request +
      +Response status code is not 200 +
      {
      +  "statusText": "Bad Request",
      +  "status": 400,
      +  "headers": {
      +    "date": "",
      +    "content-type": "application/json; charset=utf-8",
      +    "content-length": "105",
      +    "connection": "close"
      +  },
      +  "body": {
      +    "errors": [
      +      {
      +        "message": "Syntax Error: Expected Name, found .",
      +        "locations": [
      +          {
      +            "line": 1,
      +            "column": 40
      +          }
      +        ]
      +      }
      +    ]
      +  }
      +}
      +
      +
      +
    2. +
    diff --git a/implementations/postgraphile/report.json b/implementations/postgraphile/report.json index b596dba4..3a1313d9 100644 --- a/implementations/postgraphile/report.json +++ b/implementations/postgraphile/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 46, + "ok": 45, "warn": 34, - "error": 0 + "error": 1 } From 7ceaf19b02637304e81ada56024bcd6adab040d7 Mon Sep 17 00:00:00 2001 From: enisdenjo Date: Wed, 29 Mar 2023 18:51:22 +0200 Subject: [PATCH 3/4] close bracket --- src/audits/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audits/server.ts b/src/audits/server.ts index 2087554f..6a2424ff 100644 --- a/src/audits/server.ts +++ b/src/audits/server.ts @@ -126,7 +126,7 @@ export function serverAudits(opts: ServerAuditOptions): Audit[] { 'content-type': 'application/json; charset=utf-8', }, body: JSON.stringify({ - query: '{ __type(name: "Run🏃Swim🏊") { name } ', + query: '{ __type(name: "Run🏃Swim🏊") { name } }', }), }); From f6f424ad960a37b4eb5c0fc5933aab461d346cd5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Mar 2023 16:56:01 +0000 Subject: [PATCH 4/4] docs(implementations): audit report [skip ci] --- README.md | 5 ++ implementations/apollo-server/README.md | 57 +-------------------- implementations/apollo-server/report.json | 4 +- implementations/express-graphql/README.md | 39 +------------- implementations/express-graphql/report.json | 4 +- implementations/graphql-helix/README.md | 38 +------------- implementations/graphql-helix/report.json | 4 +- implementations/hotchocolate/README.md | 41 +-------------- implementations/hotchocolate/report.json | 4 +- implementations/mercurius/README.md | 35 ++----------- implementations/mercurius/report.json | 4 +- implementations/pioneer/README.md | 32 +----------- implementations/pioneer/report.json | 4 +- implementations/postgraphile/README.md | 37 +------------ implementations/postgraphile/report.json | 4 +- 15 files changed, 34 insertions(+), 278 deletions(-) diff --git a/README.md b/README.md index 499750ce..27f1cca4 100644 --- a/README.md +++ b/README.md @@ -782,9 +782,14 @@ Their compliance with the [GraphQL over HTTP spec](https://graphql.github.io/gra | Name | Audit | |------|-------| +| [apollo-server](https://www.apollographql.com/docs/apollo-server) | [✅ Compliant](/implementations/apollo-server/README.md) | | [deno](https://deno.com/blog/build-a-graphql-server-with-deno) | [✅ Compliant](/implementations/deno/README.md) | | [graph-client](https://github.com/graphprotocol/graph-client) | [✅ Compliant](/implementations/graph-client/README.md) | +| [graphql-helix](https://www.graphql-helix.com) | [✅ Compliant](/implementations/graphql-helix/README.md) | | [graphql-yoga](https://www.the-guild.dev/graphql/yoga-server) | [✅ Compliant](/implementations/graphql-yoga/README.md) | +| [hotchocolate](https://chillicream.com/docs/hotchocolate) | [✅ Compliant](/implementations/hotchocolate/README.md) | +| [pioneer](https://pioneer.dexclaimation.com) | [✅ Compliant](/implementations/pioneer/README.md) | +| [postgraphile](https://www.graphile.org/postgraphile) | [✅ Compliant](/implementations/postgraphile/README.md) | diff --git a/implementations/apollo-server/README.md b/implementations/apollo-server/README.md index dbf22890..82b7a0b5 100644 --- a/implementations/apollo-server/README.md +++ b/implementations/apollo-server/README.md @@ -4,9 +4,8 @@

    Passing

    @@ -15,6 +14,7 @@
  • 4655 MUST accept application/json and match the content-type
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 82A3 MUST use utf-8 encoding when responding
  • +
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 9C48 MAY NOT allow executing mutations on GET requests
  • @@ -1114,56 +1114,3 @@ The server SHOULD support these, but is not required. -

    Errors

    -The server MUST support these. -
      -
    1. BF61 MUST accept utf-8 encoded request -
      -Response status code is not 200 -
      {
      -  "statusText": "Bad Request",
      -  "status": 400,
      -  "headers": {
      -    "x-powered-by": "Express",
      -    "etag": "W/\"5a0-kpydp3r1O/Ny3fpcwJRuZER6zBw\"",
      -    "date": "",
      -    "content-type": "application/json; charset=utf-8",
      -    "content-length": "1440",
      -    "connection": "close",
      -    "cache-control": "no-store",
      -    "access-control-allow-origin": "*"
      -  },
      -  "body": {
      -    "errors": [
      -      {
      -        "message": "Syntax Error: Expected Name, found .",
      -        "locations": [
      -          {
      -            "line": 1,
      -            "column": 40
      -          }
      -        ],
      -        "extensions": {
      -          "stacktrace": [
      -            "GraphQLError: Syntax Error: Expected Name, found .",
      -            "    at syntaxError (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/error/syntaxError.js:15:10)",
      -            "    at Parser.expectToken (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:1397:40)",
      -            "    at Parser.parseName (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:108:24)",
      -            "    at Parser.parseField (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:347:30)",
      -            "    at Parser.parseSelection (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:337:14)",
      -            "    at Parser.many (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:1511:26)",
      -            "    at Parser.parseSelectionSet (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:320:24)",
      -            "    at Parser.parseOperationDefinition (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:231:28)",
      -            "    at Parser.parseDefinition (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:155:19)",
      -            "    at Parser.many (/home/runner/work/graphql-http/graphql-http/node_modules/graphql/language/parser.js:1511:26)"
      -          ],
      -          "code": "GRAPHQL_PARSE_FAILED"
      -        }
      -      }
      -    ]
      -  }
      -}
      -
      -
      -
    2. -
    diff --git a/implementations/apollo-server/report.json b/implementations/apollo-server/report.json index 26a51407..2eef84c1 100644 --- a/implementations/apollo-server/report.json +++ b/implementations/apollo-server/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 53, + "ok": 54, "warn": 26, - "error": 1 + "error": 0 } diff --git a/implementations/express-graphql/README.md b/implementations/express-graphql/README.md index 8a696513..ebb5d761 100644 --- a/implementations/express-graphql/README.md +++ b/implementations/express-graphql/README.md @@ -4,9 +4,8 @@

    Passing

    @@ -15,6 +14,7 @@
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 80D8 SHOULD assume application/json content-type when accept is missing
  • 82A3 MUST use utf-8 encoding when responding
  • +
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -894,38 +894,3 @@ The server SHOULD support these, but is not required. -

    Errors

    -The server MUST support these. -
      -
    1. BF61 MUST accept utf-8 encoded request -
      -Response status code is not 200 -
      {
      -  "statusText": "Bad Request",
      -  "status": 400,
      -  "headers": {
      -    "x-powered-by": "Express",
      -    "etag": "W/\"69-8+mmXUXYV+Ue+OyUs6Ws9j43h3A\"",
      -    "date": "",
      -    "content-type": "application/json; charset=utf-8",
      -    "content-length": "105",
      -    "connection": "close"
      -  },
      -  "body": {
      -    "errors": [
      -      {
      -        "message": "Syntax Error: Expected Name, found .",
      -        "locations": [
      -          {
      -            "line": 1,
      -            "column": 40
      -          }
      -        ]
      -      }
      -    ]
      -  }
      -}
      -
      -
      -
    2. -
    diff --git a/implementations/express-graphql/report.json b/implementations/express-graphql/report.json index 3a1313d9..b596dba4 100644 --- a/implementations/express-graphql/report.json +++ b/implementations/express-graphql/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 45, + "ok": 46, "warn": 34, - "error": 1 + "error": 0 } diff --git a/implementations/graphql-helix/README.md b/implementations/graphql-helix/README.md index 3ae6ad30..1b83b902 100644 --- a/implementations/graphql-helix/README.md +++ b/implementations/graphql-helix/README.md @@ -4,9 +4,8 @@

    Passing

    @@ -15,6 +14,7 @@
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 80D8 SHOULD assume application/json content-type when accept is missing
  • 82A3 MUST use utf-8 encoding when responding
  • +
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -772,37 +772,3 @@ The server SHOULD support these, but is not required. -

    Errors

    -The server MUST support these. -
      -
    1. BF61 MUST accept utf-8 encoded request -
      -Response status code is not 200 -
      {
      -  "statusText": "Bad Request",
      -  "status": 400,
      -  "headers": {
      -    "x-powered-by": "Express",
      -    "date": "",
      -    "content-type": "application/json",
      -    "content-length": "105",
      -    "connection": "close"
      -  },
      -  "body": {
      -    "errors": [
      -      {
      -        "message": "Syntax Error: Expected Name, found .",
      -        "locations": [
      -          {
      -            "line": 1,
      -            "column": 40
      -          }
      -        ]
      -      }
      -    ]
      -  }
      -}
      -
      -
      -
    2. -
    diff --git a/implementations/graphql-helix/report.json b/implementations/graphql-helix/report.json index 75abe3e3..416173e9 100644 --- a/implementations/graphql-helix/report.json +++ b/implementations/graphql-helix/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 49, + "ok": 50, "warn": 30, - "error": 1 + "error": 0 } diff --git a/implementations/hotchocolate/README.md b/implementations/hotchocolate/README.md index d87a702f..36daca25 100644 --- a/implementations/hotchocolate/README.md +++ b/implementations/hotchocolate/README.md @@ -4,9 +4,8 @@

    Passing

    @@ -14,6 +13,7 @@
  • 22EB SHOULD accept application/graphql-response+json and match the content-type
  • 4655 MUST accept application/json and match the content-type
  • 82A3 MUST use utf-8 encoding when responding
  • +
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -139,40 +139,3 @@ The server SHOULD support these, but is not required. -

    Errors

    -The server MUST support these. -
      -
    1. BF61 MUST accept utf-8 encoded request -
      -Response status code is not 200 -
      {
      -  "statusText": "Bad Request",
      -  "status": 400,
      -  "headers": {
      -    "transfer-encoding": "chunked",
      -    "server": "Kestrel",
      -    "date": "",
      -    "content-type": "application/graphql-response+json;charset=utf-8",
      -    "connection": "close"
      -  },
      -  "body": {
      -    "errors": [
      -      {
      -        "message": "Expected a `Name`-token, but found a `EndOfFile`-token.",
      -        "locations": [
      -          {
      -            "line": 1,
      -            "column": 44
      -          }
      -        ],
      -        "extensions": {
      -          "code": "HC0011"
      -        }
      -      }
      -    ]
      -  }
      -}
      -
      -
      -
    2. -
    diff --git a/implementations/hotchocolate/report.json b/implementations/hotchocolate/report.json index 93ef7a4b..623461ce 100644 --- a/implementations/hotchocolate/report.json +++ b/implementations/hotchocolate/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 77, + "ok": 78, "warn": 2, - "error": 1 + "error": 0 } diff --git a/implementations/mercurius/README.md b/implementations/mercurius/README.md index e1e70392..145fd319 100644 --- a/implementations/mercurius/README.md +++ b/implementations/mercurius/README.md @@ -4,9 +4,9 @@

    Passing

    @@ -15,6 +15,7 @@
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 80D8 SHOULD assume application/json content-type when accept is missing
  • 82A3 MUST use utf-8 encoding when responding
  • +
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
  • @@ -796,36 +797,6 @@ The server SHOULD support these, but is not required.

    Errors

    The server MUST support these.
      -
    1. BF61 MUST accept utf-8 encoded request -
      -Response status code is not 200 -
      {
      -  "statusText": "Bad Request",
      -  "status": 400,
      -  "headers": {
      -    "date": "",
      -    "content-type": "application/json; charset=utf-8",
      -    "content-length": "117",
      -    "connection": "close"
      -  },
      -  "body": {
      -    "errors": [
      -      {
      -        "message": "Syntax Error: Expected Name, found .",
      -        "locations": [
      -          {
      -            "line": 1,
      -            "column": 40
      -          }
      -        ]
      -      }
      -    ],
      -    "data": null
      -  }
      -}
      -
      -
      -
    2. 0222 MUST allow null {extensions} parameter when accepting application/json
      Response status code is not 200 diff --git a/implementations/mercurius/report.json b/implementations/mercurius/report.json index 6b519e31..14e6ec36 100644 --- a/implementations/mercurius/report.json +++ b/implementations/mercurius/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 49, + "ok": 50, "warn": 29, - "error": 2 + "error": 1 } diff --git a/implementations/pioneer/README.md b/implementations/pioneer/README.md index 622aa7b9..8862063b 100644 --- a/implementations/pioneer/README.md +++ b/implementations/pioneer/README.md @@ -4,9 +4,8 @@
      • 80 audits in total
      • -
      • 75 pass
      • +
      • 76 pass
      • ⚠️ 4 warnings (optional)
      • -
      • 1 errors (required)

      Passing

      @@ -16,6 +15,7 @@
    3. 47DE SHOULD accept */* and use application/json for the content-type
    4. 80D8 SHOULD assume application/json content-type when accept is missing
    5. 82A3 MUST use utf-8 encoding when responding
    6. +
    7. BF61 MUST accept utf-8 encoded request
    8. 78D5 MUST assume utf-8 in request if encoding is unspecified
    9. 2C94 MUST accept POST requests
    10. 5A70 MAY accept application/x-www-form-urlencoded formatted GET requests
    11. @@ -195,31 +195,3 @@ The server SHOULD support these, but is not required.
    -

    Errors

    -The server MUST support these. -
      -
    1. BF61 MUST accept utf-8 encoded request -
      -Response status code is not 200 -
      {
      -  "statusText": "Bad Request",
      -  "status": 400,
      -  "headers": {
      -    "date": "",
      -    "content-type": "application/json; charset=utf-8",
      -    "content-length": "95",
      -    "connection": "close"
      -  },
      -  "body": {
      -    "errors": [
      -      {
      -        "path": [],
      -        "message": "Operation of this type is not allowed and has been blocked"
      -      }
      -    ]
      -  }
      -}
      -
      -
      -
    2. -
    diff --git a/implementations/pioneer/report.json b/implementations/pioneer/report.json index 7bd57363..484cdabd 100644 --- a/implementations/pioneer/report.json +++ b/implementations/pioneer/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 75, + "ok": 76, "warn": 4, - "error": 1 + "error": 0 } diff --git a/implementations/postgraphile/README.md b/implementations/postgraphile/README.md index 0d3d162e..37ebdd5f 100644 --- a/implementations/postgraphile/README.md +++ b/implementations/postgraphile/README.md @@ -4,9 +4,8 @@

    Passing

    @@ -14,6 +13,7 @@
  • 4655 MUST accept application/json and match the content-type
  • 47DE SHOULD accept */* and use application/json for the content-type
  • 82A3 MUST use utf-8 encoding when responding
  • +
  • BF61 MUST accept utf-8 encoded request
  • 78D5 MUST assume utf-8 in request if encoding is unspecified
  • 2C94 MUST accept POST requests
  • 9C48 MAY NOT allow executing mutations on GET requests
  • @@ -845,36 +845,3 @@ The server SHOULD support these, but is not required. -

    Errors

    -The server MUST support these. -
      -
    1. BF61 MUST accept utf-8 encoded request -
      -Response status code is not 200 -
      {
      -  "statusText": "Bad Request",
      -  "status": 400,
      -  "headers": {
      -    "date": "",
      -    "content-type": "application/json; charset=utf-8",
      -    "content-length": "105",
      -    "connection": "close"
      -  },
      -  "body": {
      -    "errors": [
      -      {
      -        "message": "Syntax Error: Expected Name, found .",
      -        "locations": [
      -          {
      -            "line": 1,
      -            "column": 40
      -          }
      -        ]
      -      }
      -    ]
      -  }
      -}
      -
      -
      -
    2. -
    diff --git a/implementations/postgraphile/report.json b/implementations/postgraphile/report.json index 3a1313d9..b596dba4 100644 --- a/implementations/postgraphile/report.json +++ b/implementations/postgraphile/report.json @@ -1,6 +1,6 @@ { "total": 80, - "ok": 45, + "ok": 46, "warn": 34, - "error": 1 + "error": 0 }