Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 752 Bytes

File metadata and controls

27 lines (18 loc) · 752 Bytes

pystapi-validator

This project provides API validation for STAPI FastAPI implementations using Schemathesis against the latest STAPI OpenAPI specification.

Configuration

  • The STAPI OpenAPI specification is fetched from: STAPI OpenAPI Spec
  • The base URL for the API being tested is set to http://localhost:8000. Update the BASE_URL in tests/validate_api.py if your API is hosted elsewhere.

Setup

  1. Install dependencies:
uv sync
  1. Run tests and generate report:
uv run pytest tests/validate_api.py --html=report.html --self-contained-html
  1. Open report.html in your browser to view the detailed test report.