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

WIP: feat: add more OpenAPI specs #3198

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

Vito0912
Copy link
Contributor

This PR is a work in progress and may never be "finished."

I will be updating it with commits periodically. This PR should not be merged until the last commit is ready for merging. If the last commit is not ready for merging, I am still adding new specifications. So at that time I did not tested it or generated the OpenApi.json.
I try to test everything somewhat. Please review before merging.

Contributions and suggestions for better practices are appreciated, including naming conventions, references, etc. This is my first time writing OpenAPI specs, and I am doing my best to ensure each component is unique and references existing schemas when possible.

Currently, I am testing a bit, but I wanted to open this PR to show what I am working on so others can help or contribute.

Copy link
Contributor Author

@Vito0912 Vito0912 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My language and the generator does not support the oneOf per https://github.com/OpenAPITools/openapi-generator. Therefore, I will focus on endpoints that do not use oneOf.

Vito0912 and others added 8 commits July 29, 2024 21:44
Added missing abridged
Fixed wrong type on start of bookChapter
Added missing libraryFile for LibraryItem
Added missing type to id in media
* Update: formatting

* Fix: libraryItemController `play` endpoint
+ Endpoints cannot have optional path parameters
+ Moved schemas to `components` section

* Fix: MeController optional path parameters

* Fix: Books do not have `episodeId` in `mediaProgress`

* Fix: `PlaybackSession` oneOf between book and podcast

* Update: bundled spec

* Fix: `allowReserved` in LibraryItem include query

* Add: tags to AuthController endpoints

* Fix: summary of play endpoints

* Update: bundled spec
@Vito0912 Vito0912 marked this pull request as ready for review August 4, 2024 18:11
@Vito0912 Vito0912 marked this pull request as draft August 9, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants