Skip to content

Commit

Permalink
Merge pull request #2 from blowdart/patch-2
Browse files Browse the repository at this point in the history
Put .AddDataAnnotations()  back in.
  • Loading branch information
DamianEdwards authored Aug 14, 2017
2 parents f9fdae2 + 8d8c3f7 commit a58f614
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/1. Create BackEnd API project.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Additional information on using Swashbuckle in ASP.NET Core is available in this
1. Register Swashbuckle as a service by replacing the line that reads `services.AddMvc();` in the the `ConfigureServices()` method in `Startup.cs`:
```csharp
services.AddMvcCore()
.AddDataAnnotations()
.AddJsonFormatters()
.AddApiExplorer();

Expand Down

0 comments on commit a58f614

Please sign in to comment.