8000 $global in openAPI route meta is required in nitro 2.11 · Issue #3173 · nitrojs/nitro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

$global in openAPI route meta is required in nitro 2.11 #3173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pradel opened this issue Mar 7, 2025 · 0 comments
Closed

$global in openAPI route meta is required in nitro 2.11 #3173

pradel opened this issue Mar 7, 2025 · 0 comments

Comments

@pradel
Copy link
Contributor
pradel commented Mar 7, 2025

Environment

Nodejs: v20.13.1
Nitro: 2.11.4

Reproduction

defineRouteMeta({
  openAPI: {
    tags: ["anything"],
    description: "anything.",
  },
});

Image

Describe the bug

The $global option is now part of nitro 2.11 (which is really useful) but the type is not optional. Meaning that any project upgrading from 2.10 to 2.11 will get their type check to fail as the property is required.
It should be optional.

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0