Run the validator on the spec

pull/780/head
Travis Ralston 6 years ago
parent b67f544026
commit 791a2f2b17

@ -38,9 +38,21 @@ genmatrixassets: &genmatrixassets
source /env/bin/activate
./scripts/generate-matrix-org-assets
validateapi: &validateapi
name: Validate OpenAPI specifications
command: |
cd api
npm install
node validator.js -s "client-server"
version: 2
jobs:
validate-docs:
docker:
- image: node:alpine
steps:
- checkout
- run: *validateapi
check-docs:
docker:
- image: uhoreg/matrix-doc-build
@ -81,6 +93,7 @@ workflows:
- build-docs
- build-swagger
- check-docs
- validate-docs
notify:
webhooks:

Loading…
Cancel
Save