{
  "arazzo": "1.1.0",
  "info": {
    "title": "Decode a JWT and inspect it as YAML",
    "version": "1.0.0"
  },
  "sourceDescriptions": [
    {
      "name": "tamperbox",
      "url": "https://docs.tamperbox.dev/openapi.json",
      "type": "openapi"
    }
  ],
  "workflows": [
    {
      "workflowId": "jwtToYaml",
      "inputs": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ]
      },
      "steps": [
        {
          "stepId": "decode",
          "operationId": "jwt_decode",
          "requestBody": {
            "payload": {
              "input": {
                "mediaType": "application/jwt",
                "value": "$inputs.token"
              },
              "options": {}
            }
          },
          "outputs": {
            "artifact": "$response.body#/output"
          }
        },
        {
          "stepId": "yaml",
          "operationId": "json_to_yaml",
          "requestBody": {
            "payload": {
              "input": "$steps.decode.outputs.artifact",
              "options": {
                "indent": 2
              }
            }
          },
          "outputs": {
            "artifact": "$response.body#/output"
          }
        }
      ],
      "outputs": {
        "yaml": "$steps.yaml.outputs.artifact"
      }
    }
  ]
}
