substantial cleaning and sorting

This commit is contained in:
Luke Hagar
2023-04-19 21:53:25 -05:00
parent 651f110e23
commit 724767a58d
70 changed files with 220 additions and 4401 deletions

View File

@@ -21,18 +21,37 @@ jobs:
- name: Install swagger-cli
run: |
npm install -g swagger-cli
- name: Dereference Plex API Specification
- name: Dereference Plex Media Server Specification
run: |
swagger-cli bundle --dereference referenced/plex-api-spec.yaml -t yaml -o plex-api-spec-dereferenced.yaml
swagger-cli bundle --dereference pms/pms-spec.yaml -t yaml -o plex-media-server-spec-dereferenced.yaml
- name: Dereference Plex TV Specification
run: |
swagger-cli bundle --dereference plextv/plextv-spec.yaml -t yaml -o plex-tv-spec-dereferenced.yaml
- name: Pushes Dereferenced Specification File
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: plex-api-spec-dereferenced.yaml
source_file: plex-media-server-spec-dereferenced.yaml
destination_repo: lukehagar/plex-docs
destination_folder: static
user_email: lukeslakemail@gmail.com
user_name: lukehagar
commit_message: Updating OpenAPI Spec
commit_message: Updating PMS Spec
- name: Pushes Dereferenced Specification File
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: plex-tv-spec-dereferenced.yaml
destination_repo: lukehagar/plex-docs
destination_folder: static
user_email: lukeslakemail@gmail.com
user_name: lukehagar
commit_message: Updating PlexTV Spec
- uses: stefanzweifel/git-auto-commit-action@v4

View File

@@ -36,8 +36,15 @@ jobs:
id: buildTS
run: |
cd sdk-ts
rm -rf plexjs/
java -jar openapi-generator-cli.jar generate -i ../referenced/plex-api-spec.yaml -g typescript-axios -o plexjs/ --global-property skipFormModel=false --config config.yaml
rm -rf plexjs/pms
java -jar openapi-generator-cli.jar generate -i ../pms/pms-spec.yaml -g typescript-axios -o plexjs/pms --global-property skipFormModel=false --config sdk-resources/pms-config.yaml
- name: Build TS SDK
id: buildTS
run: |
cd sdk-ts
rm -rf plexjs/plextv
java -jar openapi-generator-cli.jar generate -i ../plextv/plextv-spec.yaml -g typescript-axios -o plexjs/plextv --global-property skipFormModel=false --config sdk-resources/plextv-config.yaml
- name: Run npm install and build Typescript SDK
id: buildSDK