OpenSlides/docs/modelsvalidator
2021-02-05 17:03:56 +01:00
..
check Fixed modelsvalidator. 2021-02-05 17:03:56 +01:00
check_json.py Added meeting specific fields for users and changed role system. 2021-01-22 14:58:44 +01:00
go.mod Use openslides-models-to-go 2021-01-06 11:32:16 +01:00
go.sum Use openslides-models-to-go 2021-01-06 11:32:16 +01:00
main.go Use openslides-models-to-go 2021-01-06 11:32:16 +01:00
README.md Removed redundant information from models.yml and adjusted validator 2020-12-17 10:30:15 +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.yml | 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.