Skip to main content

No project description provided

Project description

openapi-audit

Tools for working with OpenAPI schemas. Requires Python 3.11+.

openapi-audit

Lint an OpenAPI schema for quality issues.

# From a file:
uv run openapi-audit schema.json

# From stdin:
curl -s http://localhost:8000/openapi.json | uv run openapi-audit

# Skip specific checks:
uv run openapi-audit schema.json --ignore missing-description --ignore missing-summary

# List available checks:
uv run openapi-audit --list-checks

Configuration

Checks can be configured via a TOML file (--config FILE), either as a standalone file or under [tool.openapi-audit] in pyproject.toml.

Skip entire checks:

[tool.openapi-audit]
ignore-checks = ["missing-parameter-example", "5xx-response"]

Suppress specific issues with regexps (matched against the formatted issue line):

[tool.openapi-audit.checks.missing-parameter-example]
ignore-regexps = ["(limit|offset|ordering)"]

[tool.openapi-audit.checks.no-global-security]
ignore-regexps = [".*"]

openapi-summarize

Produce a compact, LLM-friendly text summary of an OpenAPI schema.

uv run openapi-summarize schema.json
curl -s http://localhost:8000/openapi.json | uv run openapi-summarize

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openapi_audit-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file openapi_audit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: openapi_audit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openapi_audit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 065557792430551b03d360d1de60774cb0e75e1655cdc9ccba07f9cdc4d32e54
MD5 8cfb7061a06123ff241527180cff2869
BLAKE2b-256 3d9db672fe4a89ac67f22648e0be3be13aac8582fe4a3187341085d14678fd9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for openapi_audit-0.1.0-py3-none-any.whl:

Publisher: ci.yml on akx/openapi-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page