Document validation of generated Example specs (#898)

Adds a composer `scripts` target to run `spectral` over all generated specs files in the `Examples` folder
This commit is contained in:
Martin Rademacher 2021-01-08 11:11:48 +13:00 committed by GitHub
parent 5cd636a78f
commit 4dbcefe962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@
"phpstan analyze --level=3 src | grep -v 'does not accept default value of type string'",
"psalm"
],
"validate-examples": "for ff in `find Examples -name *.yaml`; do spectral lint $ff; done",
"docs": "./docs/node_modules/.bin/vuepress dev docs/",
"deploy_docs": "./docs/node_modules/.bin/vuepress build docs/ && cp -r .git docs/.vuepress/dist/.git && cd docs/.vuepress/dist/ && git symbolic-ref HEAD refs/heads/gh-pages && git add --all"
}