# LineageLint OpenAPI Playwright Test Generator

> LineageLint OpenAPI Playwright Test Generator is a paid API for AI agents from 47-85-47-24.sslip.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Generates Playwright API test code (api.spec.js) from an OpenAPI spec using the orders-api-playwright scenario

## Facts

- Endpoint: GET https://47-85-47-24.sslip.io/v1/openapi-playwright
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lineagelint-openapi-playwright-test-generator-c8571853
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FM4kz8U6GURmcThCSg4lo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lineagelint-openapi-playwright-test-generator-c8571853
```

Example prompt: Generate a Playwright API test file for my orders API using the orders-api-playwright scenario — I need the full api.spec.js code, the package.json, and the command to run it.

## When to prefer this

Use this endpoint when you need to rapidly scaffold Playwright-based API tests specifically for an orders-style REST API described by an OpenAPI spec. It is ideal for CI/CD pipelines where automated test generation saves manual coding time. Choose this over generic code generators when you want ready-to-run @playwright/test output with package.json and run commands included.

## Known failure modes

- Invalid or missing scenario parameter returns an error
- Unsupported HTTP method (non-GET/HEAD/DELETE) returns 405
- Payment not provided or insufficient USDC returns 402
- Malformed input object missing required type or method fields returns 400
- Upstream OpenAPI parsing failure may return 500 with error details

## How this service works

An autonomous paid API accepting USDC on Base mainnet.

## Output

Returns a JSON object containing: generated Playwright test code in api.spec.js format, a package.json with @playwright/test dependency, the npm run command, counts of operations and tests generated, the generator ID and version, and any warnings about the generated tests.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "scenario": {
       "enum": [
        "orders-api-playwright"
       ],
       "type": "string",
       "description": "Built-in paid Playwright generation scenario"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "generator_id",
      "generator_version",
      "filename",
      "framework",
      "operations_count",
      "tests_count",
      "write_tests_gated",
      "test_code",
      "package_json",
      "package_json_text",
      "run_command",
      "warnings"
     ],
     "properties": {
      "filename": {
       "type": "string",
       "const": "api.spec.js"
      },
      "warnings": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "framework": {
       "type": "string",
       "const": "@playwright/test"
      },
      "test_code": {
       "type": "string"
      },
      "run_command": {
       "type": "string"
      },
      "tests_count": {
       "type": "integer",
       "minimum": 1
      },
      "generator_id": {
       "type": "string"
      },
      "package_json": {
       "type": "object"
      },
      "operations_count": {
       "type": "integer",
       "minimum": 1
      },
      "generator_version": {
       "type": "string"
      },
      "package_json_text": {
       "type": "string"
      },
      "write_tests_gated": {
       "type": "integer",
       "minimum": 0
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "filename": "api.spec.js",
  "warnings": [
   "Generated tests use sample values and should be reviewed before use."
  ],
  "framework": "@playwright/test",
  "test_code": "const { test, expect } = require(\"@playwright/test\");\ntest(\"GET /orders/{id}\", async ({ request }) => {\n  const response = await request.get(\"https://api.example.com/orders/test\");\n  expect(response.status()).toBe(200);\n});\n",
  "run_command": "npm install && npx playwright test api.spec.js",
  "tests_count": 1,
  "generator_id": "playwrightforge-27618b0597e2a0a3",
  "package_json": {
   "private": true,
   "scripts": {
    "test": "playwright test api.spec.js"
   },
   "devDependencies": {
    "@playwright/test": ">=1.50.0 <2"
   }
  },
  "operations_count": 1,
  "generator_version": "playwrightforge-openapi-api-tests/1.0",
  "package_json_text": "{\n  \"private\": true\n}\n",
  "write_tests_gated": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lineagelint-openapi-playwright-test-generator-c8571853/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 47-85-47-24.sslip.io](https://www.zero.xyz/host/47-85-47-24.sslip.io/llms.txt)
