-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hey!
I have a project that use the OpenCode API, I have my own client layer but I came across your project and I was thinking on using it.
Here are some usability things that maybe you can think if you would like to have, I can help with PRs for them if you want.
-
Decode responses. Now the operations return plain maps, that's not great for usability, specially since open-api-generator creates structs for all of them, I think it would be great to return the correct structs. (The same for the events for example)
-
Maybe split the operations and schemas in different directories and namespaces (for example, one for sessions, one for projects, ...), example: https://github.com/aj-foster/open-api-github
-
For SSE, having a stream is great for simple cases, but what if I want to have more control? It would be great to have an option to send events into the current pid (or a specified one), without the stream resource, that way a parent process can monitor/trap exists, and when the connection closes it can decide what to do