Bewinxed / svetch

Auto-Generated typesafe client & API docs generator for your Serverless Application (Svelte First)
https://svetch-dev.vercel.app/
67 stars 0 forks source link

Parameters shown as string instead of empty box in docs page #4

Closed EdenKahane closed 1 month ago

EdenKahane commented 8 months ago

Hello, When I set a path parameter :

export const PATCH: RequestHandler = async ({ request, url }) => {
    const index = url.searchParams.get('index') || '0'
    const payload = await request.json()
    return json({todo: true});
};

For some reason, in the /docs/ page, I don't have an empty box where I can input an exemple parameter to test, but just some sort of text under query : image

Using Svetch version 1.0.49

Thank for your help !

Bewinxed commented 2 months ago

Hello, I'm working on removing the docs page entirely and switch to Swagger/OpenAPI for docs.

It's in the latest version if you would like to try it.

EdenKahane commented 2 months ago

That's a very good idea ! I will try that next week :+1:

Bewinxed commented 1 month ago

Last version uses swagger, So this should be fixed 👍