w7a9q
Explore posts from serversOpenAPI specs through Nitro
I'm trying to set up OpenAPI specs generation through Nitro but when I open
http://localhost:3000/_nitro/swagger
I get stuck at:
I'm trying to resolve this by specifying the version in nuxt.config.ts
as:
But openAPI
at root level gives type error:
http://localhost:3000/_nitro/openapi.json
lists all the endpoints and starts with:
How do I correctly generate the specs?2 replies
Mocking useStorage
I'm trying to mock
useStorage()
as in documentation: https://nuxt.com/docs/getting-started/testing#mocknuxtimport
However I'm stuck at Error: Cannot find import "useStorage" to mock
. Where should I take this import from when it's autoimported by Nitro?4 replies