Skip to content

[reconfigurator] clickhouse-admin endpoints to generate ClickHouse config files #3850

[reconfigurator] clickhouse-admin endpoints to generate ClickHouse config files

[reconfigurator] clickhouse-admin endpoints to generate ClickHouse config files #3850

name: validate-openapi-spec
on:
pull_request:
paths:
- .github/workflows/validate-openapi-spec.yml
- openapi/*
workflow_dispatch:
inputs:
jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '18'
- name: Install our tools
shell: bash
run: |
npm install -g @apidevtools/swagger-cli
- name: Run validation
shell: bash
run: |
for spec in openapi/*.json; do
swagger-cli validate $spec || exit
done