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:
parent
5cd636a78f
commit
4dbcefe962
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue