bkbnio / kompendium

Ktor OpenAPI Spec Generator
https://bkbn.gitbook.io/kompendium
MIT License
151 stars 22 forks source link

KSP Generator Implementation #381

Closed brizzbuzz closed 1 year ago

brizzbuzz commented 1 year ago

Is your feature request related to a problem? Please describe.

I would like to have a compile-time generator so that the serialized OpenAPI doc could be check in to source code. This would enable validation and linting, and would make tracking API documentation changes over time much easier.

Describe the solution you'd like

This could be achieved using the Kotlin Symbol Processing library

Describe alternatives you've considered

The current approach (mostly) works, but having this as a companion approach would be nice :)

Additional context N/A

brizzbuzz commented 1 year ago

I'm going to close this, it would be such a massive rewrite of the core system, that it should probably just be it's own repo.

Hopefully someone (cough cough jetbrains) picks up this and runs with it.