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.2.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openapi_audit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 809e568f5f3cf5f71580f2e2d1f9b5ff48f15ea64116bf07ae4b6a393ed95810
MD5 100d30d49e09d5e64b40383396a47f89
BLAKE2b-256 978b306deb475e8caecae380caf1f767e6320a9ec9cf89b9395bdbb34ec50f63

See more details on using hashes here.

Provenance

The following attestation bundles were made for openapi_audit-0.2.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