---
cases:
  - note: jwtbuiltins/simple-non-registered
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := [x, y, z] if {
        	io.jwt.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuZXciOiJJIGFtIGEgdXNlciBjcmVhdGVkIGZpZWxkIiwiaXNzIjoib3BhIn0.6UmjsclVDGD9jcmX_F8RJzVgHtUZuLu2pxkF_UEQCrE", [x, y, z])
        }
    data: {}
    want_result:
      - x:
          - alg: HS256
            typ: JWT
          - iss: opa
            new: I am a user created field
          - e949a3b1c9550c60fd8dc997fc5f112735601ed519b8bbb6a71905fd41100ab1
