Open zRelux opened 1 month ago
Nitro npm:nitropack-nightly@latest Bun 1.1.21
npm:nitropack-nightly@latest
1.1.21
const OpenApiUserProperties: Record<string, SchemaObject | ReferenceObject> = { id: { type: "string" }, }; defineRouteMeta({ openAPI: { tags: ["user"], description: "Get user information", responses: { 200: { description: "OK", content: { "application/json": { schema: { type: "object", properties: { status: { type: "string" }, result: { type: "object", properties: OpenApiUserProperties, }, }, }, }, }, }, }, }, });
Seems like I cannot import any variables inside the openAPI object, it would be very useful to be able to do so since I for example this api returns a value from DB
No response
Environment
Nitro
npm:nitropack-nightly@latest
Bun1.1.21
Reproduction
Describe the bug
Seems like I cannot import any variables inside the openAPI object, it would be very useful to be able to do so since I for example this api returns a value from DB
Additional context
No response
Logs
No response