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

Execute lint on the bundled file #42

Closed
wants to merge 2 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
15 changes: 14 additions & 1 deletion .github/workflows/openapi-linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,22 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Install swagger-cli
run: |
npm install -g swagger-cli

- name: Dereference Plex Media Server Specification
run: |
swagger-cli bundle --dereference pms-spec.yaml -t yaml -o plex-media-server-spec-dereferenced.yaml

- name: Install Speakeasy CLI
run: |
curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh

- name: OpenAPI Lint
run: speakeasy lint openapi -s pms-spec.yaml
run: speakeasy lint openapi -s plex-media-server-spec-dereferenced.yaml
2 changes: 1 addition & 1 deletion pms-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.1.0
info:
version: 0.0.3
title: Plex-API
description: An Open API Spec for interacting with Plex.tv
description: An Open API Spec for interacting with Plex.tv and Plex Media Server
contact:
name: Luke Hagar
url: 'https://www.LukeHagar.com'
Expand Down
Loading