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

Automatically update OpenAPI spec #210

Closed
nielsvanvelzen opened this issue Mar 30, 2021 · 1 comment · Fixed by #219
Closed

Automatically update OpenAPI spec #210

nielsvanvelzen opened this issue Mar 30, 2021 · 1 comment · Fixed by #219
Assignees
Labels
ci enhancement New feature or request

Comments

@nielsvanvelzen
Copy link
Member

When a new Jellyfin server version is released the OpenAPI specification is published at https://repo.jellyfin.org/releases/openapi/. Right now updating the SDK requires running the updateApiSpecStable gradle task to download the JSON file and run the generator to create the generated sources.

It would be amazing if we could automate this process by creating a workflow that runs every day/week/? and compares the latest stable specification with the one in the repository. If any changes are found it should update the generated sources, push it to a new branch and create a pull request. We can then validate this PR manually to see if everything works correctly, and make changes to it if required.

@h1dden-da3m0n
Copy link
Contributor

Okay this was way easier than expected due to a AMAZING function by technote-space and it would end up looking something like this: https://github.com/h1dden-da3m0n/jellyfin-sdk-kotlin/pull/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants