-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from LukeHagar/redocly-lint
- Loading branch information
Showing
25 changed files
with
178 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Checks | ||
"on": | ||
pull_request: | ||
paths: | ||
- src/** | ||
- tests/** | ||
|
||
jobs: | ||
unit-test: | ||
name: Run Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Project Setup | ||
uses: ./.github/workflows/steps/project-setup | ||
|
||
- name: Bundle OpenAPI Spec | ||
run: bun run build | ||
|
||
- name: Run Unit Tests | ||
run: bun run test | ||
|
||
type-check: | ||
name: Run Type Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Project Setup | ||
uses: ./.github/workflows/steps/project-setup | ||
|
||
- name: Run Unit Tests | ||
run: bun run type-check | ||
|
||
lint: | ||
name: Run OpenApi Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Project Setup | ||
uses: ./.github/workflows/steps/project-setup | ||
|
||
- name: OpenAPI Lint | ||
run: bun run lint | ||
|
||
- name: Install Speakeasy CLI | ||
run: bun run setup-speakeasy-cli | ||
|
||
- name: Bundle OpenAPI Spec | ||
run: bun run build | ||
|
||
- name: OpenAPI Lint On Bundled Spec | ||
run: bun run lint-bundled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: 'Project Setup' | ||
description: 'Setup Bun and install dependencies' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: "latest" | ||
- name: Clean install node_modules | ||
shell: bash | ||
run: bun install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
extends: | ||
- recommended | ||
- recommended-strict | ||
|
||
apis: | ||
core@v1: | ||
root: ./src/pms-spec.yaml | ||
|
||
rules: | ||
no-ambiguous-paths: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
name: X-Plex-Container-Size | ||
in: query | ||
description: | | ||
Add the length/size of the number of media to be retrieved. | ||
The number of items to return. If not specified, all items will be returned. | ||
If the number of items exceeds the limit, the response will be paginated. | ||
By default this is 50 | ||
schema: | ||
type: integer | ||
format: int32 | ||
default: 50 | ||
example: 50 | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
name: X-Plex-Container-Start | ||
in: query | ||
description: | | ||
Add the index start from which the media items should be returned. | ||
The index of the first item to return. If not specified, the first item will be returned. | ||
If the number of items exceeds the limit, the response will be paginated. | ||
By default this is 0 | ||
schema: | ||
type: integer | ||
format: int32 | ||
default: 0 | ||
example: 0 | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: sectionKey | ||
description: | | ||
The unique key of the Plex library. | ||
Note: This is unique in the context of the Plex server. | ||
in: path | ||
schema: | ||
type: integer | ||
format: int32 | ||
example: 9518 | ||
required: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
delete: | ||
tags: | ||
- Library | ||
summary: Delete Library Section | ||
description: Delete a library using a specific section id | ||
operationId: deleteLibrary | ||
parameters: | ||
- $ref: "../../../parameters/library/section-key.yaml" | ||
responses: | ||
"200": | ||
description: The library is deleted | ||
"400": | ||
$ref: "../../../responses/400.yaml" | ||
"401": | ||
$ref: "../../../responses/401.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.