Small public-safe Python tool for checking whether an OpenAPI spec loosely follows BIAN-style conventions.
- Whether
operationIdvalues start with common BIAN verbs - Whether the API exposes a service-domain hint in metadata
- Whether common model patterns such as
status,reference, andrecordappear
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
PYTHONPATH=src python -m bian_auditor.cli examples/sample_service.yamlPYTHONPATH=src python3 -m pytest -qThis repo works as a simple standards-checking sample. Run the CLI against the included OpenAPI file to get a JSON summary with a compliance score, issues, and the operations that were evaluated.
src/bian_auditor: compliance checks and CLIexamples/: neutral sample OpenAPI documenttests/: unit tests for compliant and non-compliant cases
- Uses only dummy example data
- Contains no credentials or external integrations
- Public-safe packaging reviewed
- Compliance checks re-validated
- Repository metadata and documentation polished