OpenSlides/docs/modelsvalidator
2020-12-01 13:45:29 +01:00
..
cmd/modelsvalidator Restructure polls 2020-11-25 14:22:16 +01:00
models Restructure polls 2020-11-25 14:22:16 +01:00
go.mod Restructure polls 2020-11-25 14:22:16 +01:00
go.sum Restructure polls 2020-11-25 14:22:16 +01:00
README.md Propagate changes in OS3 2020-12-01 13:45:29 +01:00

Modelsvalidator

Modelsvalidator is a tool to validate the models.yml file

Run

Build first: go build ./....

The tool requires the content of the models.yml. It can be provided via stdin, a file system path or an url starting with http:// or https://.

cat models.yaml | modelsvalidator
modelsvalidator openslides/docs/models.yml
modelsvalidator https://raw.githubusercontent.com/OpenSlides/OpenSlides/openslides4-dev/docs/models.yml

The tool returns with status code 0 and no content, if the given content is valid. It returns with a positive status code and some error messages if not.