enzonotario / vitepress-openapi

Generate VitePress API Docs from OpenAPI specifications
https://vitepress-openapi.vercel.app
MIT License
54 stars 9 forks source link

useTheme have no effect #107

Closed wighawag closed 3 weeks ago

wighawag commented 3 weeks ago

Current behavior

I am using

useTheme({
    request: {
        // Set the default schema view.
        defaultView: 'schema', // schema or contentType
    },
});

to set the default view to schema but this does not work

Desired behavior

No response

Reproduction

No response

Steps to reproduce

git clone https://github.com/wighawag/fuzd.git
cd fuzd
git checkout feat/vitepress-openapi
pnpm i
pnpm docs:dev
# navigate to http://localhost:5173/api-all-in-one/
# it still use JSON as default view

Logs and Error Messages

No response

Other Information

No response

enzonotario commented 3 weeks ago

Hi @wighawag , before it was request, but then I changed it to requestBody and forget to update docs. It's now fixed, and I see it working fine in StackBlitz.

Thanks for reporting!