This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
5.0.18 - Support for NSwag #535
adrianhall
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
v5.0.18 is in the process of being released. Documentation will follow next week. This release adds NSwag support. Here is how you enable it.
Set up NSwag just like you normally would.
Add the package
Microsoft.AspNetCore.Datasync.NSwag
to your project from NuGet.Edit
Program.cs
- addusing Microsoft.AspNetCore.Datasync.NSwag;
to the top of the file.Ensure the call to
AddOpenApiDocument()
is AFTER the call toAddDatasyncControllers()
.Adjust the
AddOpenApiDocument(options => { /* */ });
to add a call toAddDatasyncProcessors();
:That's it! It's now super simple to add support for OpenAPI 3.0 document generation using either NSwag or Swashbuckle.
What's Changed
Full Changelog: 5.0.17...5.0.18
This discussion was created from the release 5.0.18.
Beta Was this translation helpful? Give feedback.
All reactions