Skip to content

This Ansible module helps validate data according to format described in OpenApi standards

License

Notifications You must be signed in to change notification settings

119Vik/open-api-validation-module

Repository files navigation

Usage example

Build container

docker build -t python_openapi_validator python_openapi_validator/

Run container

docker run -p 2222:22 -d python_openapi_validator

Run data validation without special module

ansible-playbook -i ansible_inventory raw_validate.yaml --ask-pass --extra-vars='target=localhost spec_file_path=test_data/validation_rules.schema test_file_path=test_data/valid_sample.json model_name=TestModel' -e ansible_ssh_port=2222

Run data validation with special module that available at https://github.com/119Vik/ansible/tree/remote_data_validator

ansible-playbook -i ansible_inventory validate_with_module.yaml --ask-pass --extra-vars='target=localhost spec_file_path=test_data/validation_rules.schema test_file_path=test_data/valid_sample.json model_name=TestModel' -e ansible_ssh_port=2222

About

This Ansible module helps validate data according to format described in OpenApi standards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published