OpenSlides/docs/modelsvalidator
2020-11-25 14:22:16 +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 Restructure polls 2020-11-25 14:22:16 +01:00

Modelsvalidate

Modelsvalidate is a tool to validate the models.yml file, that is used in the development process of OpenSlides 4.

Run

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 | modelstool
modelstool openslides/docs/models.yml
modelstool 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.