Sveltekit Auto OpenApi #15079
MahmoodKhalil57
started this conversation in
Show and tell
Replies: 1 comment
-
|
@Rich-Harris I would also love to get your input on how you envision such a library to look like in the sveltekit ecosystem Im a big fan so even a very short response would be appreciated 😁 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
FEEDBACK NEEDED
For a long time Ive been looking for a convenient way to generate openapi docs from code with a single source of truth, over time I realized that using an openapi schema directly would be the best source of truth since inputs and outputs validations can be built with any standard schema libraries like zod or typebox, and converted to standard schema, then validated with @cfworker/json-schema
As Such:
I created a library that:
Has a very quick start, with the ability to get better documentation and validation with some elbowgrease
Github
NPM
Website
Example
-- Note: I am planning on creating a form builder and table builder that exports to an openapi-JSON:API schema that would allow simple crud applications to be built by writing api endpoints only, if someone wants to join me on this project, please message me
Beta Was this translation helpful? Give feedback.
All reactions