Skip to content

Commit

Permalink
ops: ci action to lint redoc
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Mar 5, 2024
1 parent cc31e84 commit efd69b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/test-redoc.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit efd69b6

Please sign in to comment.