Run the validator on the spec

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

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

Loading…
Cancel
Save