mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-23 14:15:19 +00:00
4c92f89f0f
We need to validate that OpenAPI YAML definition is not broken by each and every pull request. The easiest way is to rely on the Docker image provided by OpenAPITools, as it allows us to validate the definition with one simple command. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
6 lines
161 B
Bash
Executable File
6 lines
161 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -x
|
|
|
|
sudo docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli validate -i /local/vmm/src/api/openapi/cloud-hypervisor.yaml
|