-
Notifications
You must be signed in to change notification settings - Fork 270
update peer dependencies for openapi3 emitter #6666
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
base: main
Are you sure you want to change the base?
Conversation
vscode extension needs to know the rest library is expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least 2 of those dependencies shouldn't be here. Xml also not being describe doesn't hurt as it is a completely optional thing.
Can you explain more why this pr is needed
"@typespec/versioning": "workspace:^" | ||
"@typespec/versioning": "workspace:^", | ||
"@typespec/rest": "workspace:^", | ||
"@typespec/tspd": "workspace:^", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tspd is a dev depedency that's not even published
@@ -69,7 +69,10 @@ | |||
"@typespec/http": "workspace:^", | |||
"@typespec/json-schema": "workspace:^", | |||
"@typespec/openapi": "workspace:^", | |||
"@typespec/versioning": "workspace:^" | |||
"@typespec/versioning": "workspace:^", | |||
"@typespec/rest": "workspace:^", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain more why rest is expected it is not a dependency? it is not used in any of openapi3 code.
I believe these are being added because of #6664 - but the solution shouldn't be to add every library that might be used by the target TypeSpec file as a peer dependency of openapi3. openapi3 should only include libraries it depends on as peerDependencies. |
Add all dev dependencies starting with @typespec into peer dependencies.