Commit Graph

4453 Commits

Author SHA1 Message Date
Pranav K 0989231ed5 Make structs readonly 2018-08-02 15:44:09 -07:00
Pranav K 9e5905dac0
Merge pull request #8200 from aspnet/release/2.2
Respect LowercaseUrls in ApiExplorer
2018-08-02 15:43:39 -07:00
Pranav K e2b6f07778 Respect LowercaseUrls in ApiExplorer
Fixes #8006
2018-08-02 14:58:41 -07:00
Pranav K 64c3ee98b0
Merge remote-tracking branch 'origin/release/2.2' 2018-08-02 13:59:29 -07:00
Pranav K 5a20037965
Move API convention analyzers to Microsoft.AspNetCore.Mvc.Api.Analyzers
Fixes #8153
2018-08-02 13:53:33 -07:00
Artak Mkrtchyan 6d9aa281c5
Render `maxlength` attribute for an input tag, when MaxLength or StringLength validation attributes are applied to the model class. 2018-08-02 13:44:19 -07:00
Pranav K c76eb8bb37
Merge remote-tracking branch 'origin/release/2.2' 2018-08-02 09:45:45 -07:00
Pranav K b7335ac768
Add a code fix that applies ProducesResponseTypeAttributes 2018-08-02 09:40:18 -07:00
James Newton-King 3b6da530b3
Update deps 2018-08-02 14:30:23 +12:00
James Newton-King 83d519c4f7
Merge 2018-08-02 14:13:58 +12:00
Ryan Nowak 2b289d2f2c Use MatcherPolicy for Consumes 2018-08-01 19:05:04 -07:00
James Newton-King 44f5b54f5f
React to routing API review (#8194) 2018-08-02 13:37:43 +12:00
dotnet-maestro-bot 4a7cd6e3e5 Use OSS package versions consistent with aspnet/benchmarks and Microsoft.AspNetcore.All 2.1.2 (#8190)
- update our own NuGet packages to align lower-level dependencies
- add metadata to BasicApi controllers
  - avoids analyzer failures when building with Microsoft.AspNetCore.All e.g. in benchmark runs
  - especially important in `PetController` because it's associated with `[ApiContoller]`
- use pooled `DbContext`s for MySql too
2018-08-01 12:51:09 -07:00
Doug Bunting c34830f9de
Use OSS package versions consistent with aspnet/benchmarks and Microsoft.AspNetcore.All 2.1.2
- update our own NuGet packages to align lower-level dependencies
- add metadata to BasicApi controllers
  - avoids analyzer failures when building with Microsoft.AspNetCore.All e.g. in benchmark runs
  - especially important in `PetController` because it's associated with `[ApiContoller]`
- use pooled `DbContext`s for MySql too
2018-08-01 11:04:33 -07:00
Pranav K 567aa6e110
Merge remote-tracking branch 'origin/release/2.2' 2018-08-01 10:17:10 -07:00
Pranav K 814a803ed8
Use local instances of MemoryCache in script, link and image tag helper 2018-08-01 10:14:31 -07:00
Kiran Challa 1431413c56 Merge branch 'merge/release/2.2-to-master' 2018-08-01 10:04:56 -07:00
Kiran Challa f4ff537a31 Fix flaky test by using a different instance of contract resolver
[Fixes #8175] FlakyTest: ExecuteAsync_ErrorDuringSerialization_DoesNotCloseTheBrackets
2018-08-01 07:33:37 -07:00
Kiran Challa ab84d17bb3 Unskip endpoint routing functional tests 2018-08-01 07:22:42 -07:00
James Newton-King c902e5d312
Merge branch 'merge/release/2.2-to-master' 2018-08-01 16:00:19 +12:00
James Newton-King 046af405b6
Rename global routing to endpoint routing (#8179) 2018-08-01 15:05:49 +12:00
Pranav K caa9778180
Merge remote-tracking branch 'origin/release/2.2' 2018-07-31 11:10:10 -07:00
Pranav K 0726b8b98b
Make publicly exposed Roslyn types internal 2018-07-31 11:08:22 -07:00
Pranav K ddde149792
Cleanup some IDE warnings 2018-07-30 15:06:43 -07:00
Pranav K e286675254
Merge branch 'release/2.2' 2018-07-30 14:59:46 -07:00
Pranav K b2a1a7c9de
Ensure parent is a MethodDeclarationSyntax 2018-07-30 14:59:27 -07:00
Pranav K b659fa77f4
Merge branch 'release/2.2' 2018-07-30 13:18:38 -07:00
Pranav K d346255db6
Add analyzer and codefix that suggests removing unnecessary invalid model state validity checks
Fixes #8146
2018-07-30 13:14:20 -07:00
Justin Kotalik 367717760b
Handle subtype with suffix being a subtype without a suffix (#8170) 2018-07-30 12:05:41 -07:00
Pranav K a4688a205b
Merge branch 'release/2.2' 2018-07-30 11:15:19 -07:00
Pranav K 0102d4efab
Introduce ApiConventionMethodAttribute
Fixes #8147
2018-07-30 11:13:25 -07:00
ASP.NET CI 913e28a92a Update dependencies.props
[auto-updated: dependencies]
2018-07-29 20:04:25 +00:00
ASP.NET CI 29f3e94fd1 Update dependencies.props
[auto-updated: dependencies]
2018-07-29 12:20:41 -07:00
James Newton-King 90f75a146c
Merge branch 'merge/release/2.2-to-master' 2018-07-29 18:02:00 +12:00
James Newton-King 41de26a546
Add UseMvc unit tests (#8164) 2018-07-29 16:58:50 +12:00
Ryan Nowak 4c552f2a1e
Merge pull request #8163 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-07-28 21:23:08 -07:00
Ryan Nowak 9c26fe6207
Merge branch 'master' into merge/release/2.2-to-master 2018-07-28 19:41:15 -07:00
Ryan Nowak fbae57cde1 React to the removal of EndpointConstraint 2018-07-28 19:03:16 -07:00
James Newton-King c01c7075be
Add EndpointMetadata to ActionDescriptor and hookup CORS (#8158) 2018-07-28 16:12:54 +12:00
Doug Bunting efb29913a9
Merge pull request #8160 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-07-27 12:13:16 -07:00
Doug Bunting 556880872d
Ensure later validations of `null` models do not overwrite `Invalid` state
- #8078
2018-07-26 13:49:22 -07:00
Doug Bunting 7d2160e6c9
Merge pull request #8151 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-07-26 11:50:24 -07:00
Doug Bunting 0d427a60e5
Use `TheoryData` properties to avoid duplicate test data
- couldn't just remove duplicate `[TheoryData]` in `GlobalRoutingTest`
  - xUnit analyzers don't understand `[InlineData]` is inherited (though runtime certainly does)
2018-07-26 10:12:50 -07:00
Doug Bunting f165738c99
Merge pull request #8149 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-07-26 09:37:03 -07:00
Doug Bunting 498fa2d72f
Avoid `InvalidOperationException` when serializing `SerializableError`
- #8055
- provide unique name (`<Empty-Key>`) for XML elements that would otherwise be nameless

nits:
- remove now-useless Mono special case in updated test class
- extend updated tests to involve square brackets as well as empty keys
2018-07-26 08:56:02 -07:00
James Newton-King 1e0d1d7eb2
Merge branch 'merge/release/2.2-to-master' 2018-07-26 10:30:01 +12:00
James Newton-King f31ab716ee
Change MvcEndpointDataSource to use GetChangeToken (#8137) 2018-07-26 09:20:26 +12:00
Kiran Challa f06810f744 Updated dependencies.props 2018-07-25 11:50:23 -07:00
Kiran Challa 06b0872ff9 Merge branch 'merge/release/2.2-to-master' 2018-07-25 10:38:40 -07:00
Kiran Challa 5628b5c496 Use feature branch versions of routing 2018-07-25 07:12:10 -07:00