OpenAPI / Swagger test generator for ApiQube.
Generator plugin (not an executor). Invoked via qube generate --from openapi.json
to produce qube test files from an existing API specification.
Detects CRUD patterns and emits scenario files with proper save/extract chains.
# From a local file
qube generate --from ./swagger.json --output ./tests/
# From a URL
qube generate --from http://localhost:8081/swagger/doc.json --output ./tests/For each paths entry in the spec:
- CRUD groups (POST + GET/{id} + PUT/{id} + DELETE/{id}) → scenario file
- Schema fields →
fake.*template values - Response codes →
expect.statusassertions - Required fields → test bodies
tinygo build -o plugin-openapi.wasm -target=wasi ./