From efd69b6c47e971f27bc519ea7e122e72ded4708f Mon Sep 17 00:00:00 2001 From: fastfist Date: Mon, 4 Mar 2024 17:17:52 -0800 Subject: [PATCH] ops: ci action to lint redoc --- .github/workflows/test-redoc.yml | 20 ++++++++++++++++++++ server/src/lib.rs | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-redoc.yml diff --git a/.github/workflows/test-redoc.yml b/.github/workflows/test-redoc.yml new file mode 100644 index 0000000000..23c34c61f8 --- /dev/null +++ b/.github/workflows/test-redoc.yml @@ -0,0 +1,20 @@ +name: lint openapi spec + +on: + pull_request: + paths: + - 'server/**' + push: + paths: + - 'server/**' +jobs: + redoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Installing Vaccum + run: npm install -g @quobix/vacuum + - name: Generating OpenAPI spec + run: cargo run --features runtime-env --manifest-path server/Cargo.toml --bin redoc_ci > openapi.json + - name: Vaccum lint + run: vacuum lint openapi.json diff --git a/server/src/lib.rs b/server/src/lib.rs index faf45c4555..07f64a1b5b 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -193,7 +193,7 @@ impl Modify for SecurityAddon { operators::event_operator::EventReturn, operators::search_operator::SearchOverGroupsResponseBody, operators::search_operator::GroupScoreChunkDTO, - handlers::dataset_handler::CreateDatasetRequest, + // handlers::dataset_handler::CreateDatasetRequest, handlers::dataset_handler::UpdateDatasetRequest, handlers::dataset_handler::DeleteDatasetRequest, data::models::ApiKeyDTO,