From dbfdd144d0aa8ee2b9b7dcdca0b9a0da9b7afd9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=9A=80=20niko?= Date: Mon, 28 Jul 2025 23:51:55 +0300 Subject: [PATCH 1/2] Validate openapi spec file in github workflow --- .github/workflows/openapi.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/openapi.yml 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 From 78f73cbd8d1e271e8abb9130ae9562ab67655d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=9A=80=20niko?= Date: Tue, 29 Jul 2025 15:30:26 +0300 Subject: [PATCH 2/2] fix open api definition --- crates/server/openapi.yaml | 2 ++ 1 file changed, 2 insertions(+) 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: