diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml new file mode 100644 index 00000000..2d5f996a --- /dev/null +++ b/.github/workflows/openapi.yml @@ -0,0 +1,23 @@ +name: Validate openapi spec +on: + push: + branches: + - main + tags: ['[0-9]*'] + pull_request: + branches: + - main + - 'release-*' + +jobs: + validate: + name: Validate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Validate + shell: bash + run: | + docker run --rm -v "${PWD}:/local" \ + openapitools/openapi-generator-cli validate \ + -i /local/crates/server/openapi.yaml diff --git a/crates/server/openapi.yaml b/crates/server/openapi.yaml index 0e102c3d..5c4b73fc 100644 --- a/crates/server/openapi.yaml +++ b/crates/server/openapi.yaml @@ -693,6 +693,8 @@ paths: components: headers: WargRegistryHeader: + name: Warg-Registry + in: header description: If present and supported, this registry responds on behalf of the other registry specified in this header value. required: false schema: