Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Swagger Spec Simple Validation Script
set -e
FULL_SPEC_PATH="/path/to/spec.json" # Absolute, please
# Idempotent, local library install
virtualenv .
source bin/activate
pip install swagger-spec-validator
# Test the Spec
python -c "from swagger_spec_validator import validate_spec_url; validate_spec_url('file://${FULL_SPEC_PATH}')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment