Skip to content
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

Swashbuckle 3.0 SwaggerOperationAttribute missing? #799

Closed
JohnGalt1717 opened this issue Jul 9, 2018 · 5 comments
Closed

Swashbuckle 3.0 SwaggerOperationAttribute missing? #799

JohnGalt1717 opened this issue Jul 9, 2018 · 5 comments

Comments

@JohnGalt1717
Copy link

I just updated nuget packages to 3.0... and now I"m getting an error that SwaggerOperationAttribute cannot be found. I can't find it anywhere and can't find anything that looks similar that might have replaced it and the documentation hasn't changed either.

Where did it go and/or what's the replacement?

@0x53A
Copy link

0x53A commented Jul 9, 2018

Same with SwaggerResponseAttribute. There is a new Lib Swashbuckle.AspNetCore.Annotations

@JohnGalt1717
Copy link
Author

JohnGalt1717 commented Jul 9, 2018

Ok, great, but it isn't included in the meta package....

And adding it allows VS.net to see it but build fails.

@domaindrivendev
Copy link
Owner

domaindrivendev commented Jul 9, 2018

@JohnGalt1717 apologies for the inconvenience. This is one of several breaking changes as part of the latest major version update (as per semver.org). The documentation has changed but I haven't gotten round to adding an explicit section to call out breaking changes - I'm trying to find some time for this today. Here's the relevant readme updates ...

https://github.com/domaindrivendev/Swashbuckle.AspNetCore#additional-packages
https://github.com/domaindrivendev/Swashbuckle.AspNetCore#swashbuckleaspnetcoreannotations

AND the rationale for this change ...

#694

@codekoenig
Copy link

Just as a fyi for anyone else stumbling over this ... the Namespace for the SwaggerOperationAttribute has also changed to Swashbuckle.AspNetCore.Annotations - so that change is required besides adding the new Annotations package to make it build again.

@domaindrivendev
Copy link
Owner

FYI - just added a "breaking changes" banner with a link to details in the release notes

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

No branches or pull requests

4 participants