Skip to content

apiqube/plugin-openapi

Repository files navigation

plugin-openapi

OpenAPI / Swagger test generator for ApiQube.

License Status

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.

Usage

# 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/

What it generates

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.status assertions
  • Required fields → test bodies

Build

tinygo build -o plugin-openapi.wasm -target=wasi ./

License

MIT

About

OpenAPI/Swagger test generator plugin for ApiQube engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages