Skip to content

Fix openapi deatils #196

Fix openapi deatils

Fix openapi deatils #196

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 The HuggingFace Authors.
name: Check openapi specification
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "docs/source/openapi.json"
- ".github/workflows/openapi-spec.yml"
- ".spectral.yml"
pull_request:
paths:
- "docs/source/openapi.json"
- ".github/workflows/openapi-spec.yml"
- ".spectral.yml"
jobs:
check-openapi-spec-against-spectral:
name: Run Spectral
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v4
# Run Spectral
- uses: stoplightio/spectral-action@latest
with:
file_glob: 'docs/source/openapi.json'
spectral_ruleset: '.spectral.yml'