Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of annotations #26

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .github/workflows/museum-lint.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: Validate museum OpenAPI description
name: API linting

on: [push, pull_request]
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.5.1
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run Redocly CLI linting
run: npm run lint
- name: Checkout
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
- name: Install Redocly CLI
run: npm install -g @redocly/cli@latest
- name: Run linting
run: redocly lint --format=github-actions

5 changes: 0 additions & 5 deletions .redocly.lint-ignore.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions redocly.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apis:
main:
root: ./openapi.yaml
rules:
path-segment-plural: warn
extends:
- recommended
rules:
Expand Down
Loading