diff --git a/bun.lockb b/bun.lockb index 9a0687d4..1310ff25 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 9c924a9f..4df339fe 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,24 @@ { - "name": "plex-api-spec-tests", + "name": "plex-api-spec", "version": "1.0.0", - "description": "", - "main": "index.js", + "description": "An open source Plex Media Server API Specification", + "main": "src/pms-spec.yaml", "scripts": { + "dev": "redocly preview --product=redoc -d=./src", + "stats": "redocly stats ./src/pms-spec.yaml", "build": "swagger-cli bundle --dereference ./src/pms-spec.yaml -t yaml -o ./output/plex-media-server-spec-dereferenced.yaml", + "build-redocly": "redocly bundle ./src/pms-spec.yaml --ext yaml -o ./output/plex-media-server-spec-dereferenced.yaml", "test": "bun run build && vitest --run", "setup-speakeasy-cli": "curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh", "lint": "speakeasy lint openapi -s ./src/pms-spec.yaml", "lint-bundled": "bun run build && speakeasy lint openapi -s ./output/plex-media-server-spec-dereferenced.yaml" }, - "keywords": [], - "author": "", + "keywords": ["plex", "api", "specification", "openapi", "swagger"], + "author": "LukeHagar", "license": "ISC", "devDependencies": { "@modyfi/vite-plugin-yaml": "^1.1.0", + "@redocly/cli": "^1.22.0", "@types/node": "^22.5.0", "swagger-cli": "^4.0.4", "typescript": "^5.5.4", diff --git a/src/pms-spec.yaml b/src/pms-spec.yaml index 74f075a5..f319ef00 100644 --- a/src/pms-spec.yaml +++ b/src/pms-spec.yaml @@ -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' @@ -27,7 +27,7 @@ servers: x-speakeasy-globals: parameters: - - $ref: "./parameters/ClientIdentifier.yaml" + - $ref: '#/components/parameters/ClientIdentifier' security: - accessToken: []