hunk.code_window: defaultRoleClaim :: T.Text
   defaultRoleClaim = "x-hasura-default-role"
   -- | Process the request headers to verify the JWT and extract UserInfo from it
   processJwt
     :: ( MonadIO m
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit: defaultClaimNs :: T.Text
   defaultClaimNs = "https://hasura.io/jwt/claims"
  
hunk.file_path: server/src-lib/Hasura/Server/Auth/JWT.hs
hunk.type: add
file: {
    "description": "add existing view",
    "depends": [],
    "items": [
      {
        "name": "create_schema",
        "url": "/api/1/query",
        "role": "admin",
        "status_code": 200,
        "method": "POST",
        "user_id": "1",
        "pre_sql": [
          "CREATE TABLE test(id serial)",
          "CREATE VIEW test_view AS (SELECT id FROM test WHERE id > 10)"
        ],
        "request": {
          "kind": "add_existing_view",
          "body": {
            "view": "test_view"
          }
        }
      },
      {
        "name": "create_schema",
        "url": "/api/1/query",
        "role": "admin",
        "status_code": 400,
        "method": "POST",
        "response": {
          "path": "$",
          "error": "view already tracked"
        },
        "user_id": "1",
        "request": {
          "kind": "add_existing_view",
          "body": {
            "view": "test_view"
          }
        }
      }
    ]
  }