Typesafe apis with openapi-ts#2465
Draft
max-nextcloud wants to merge 10 commits into
Draft
Conversation
Collaborator
max-nextcloud
commented
May 4, 2026
- chore(types): use openapi-ts
- chore(types): use openapi-ts vite plugin
- chore(types): use our own axios with openapi-ts client-axios
- chore(lint): make linter happy with generated code
- chore(git): include generated client code
- chore(types): use typed getCollectives based on openapi-ts
- chore(docs): move get collectives comment to controller
- chore(type): collectives collectives api
- chore(refactor): move defaultOptions into separate file
- chore(types) convert all apis to typescript
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
This way it also shows in the openapi.json and the client functions. Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Some apis exist in two forms: * one for logged in users providing the collective id * a public one based on the share token Implement these as classes and pick them in a factory function so they can be used independently of which one is used. (See templates.ts for an example). Signed-off-by: Max <max@nextcloud.com>
91280f0 to
3ac8303
Compare
Collaborator
Author
|
Currently blocked by nextcloud/openapi-extractor#343 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.