Chris Martinez
Chris Martinez
I found the root cause. It's here: https://github.com/dotnet/aspnet-api-versioning/blob/9f7ecd8f1ac25eb3b6a59701f4567f703060f076/src/AspNetCore/OData/src/Asp.Versioning.OData/OData/ODataMultiModelApplicationModelProvider.cs#L124 This is an _over-optimization_. OData adds some additional endpoints based on convention, but doesn't copy the existing metadata from any other endpoints....
`6.0` has been officially released and contains this fix. Thanks for taking the time to report it and help narrow down the culprit.
Interesting that you mention that. A few people have asked how that might be achieved. Switching from storing things in an ActionDescriptor to EndpointMetadata, or more specifically `Endpoint.Metadata`, is feasible...
@davidfowl, I just wanted to let you know that this work has been completed (but I'm not closing the issue just yet). Due to changes in the project that have...
As it relates to _Minimal API_, everything will tie together like this: ```c# builder.Services.AddApiVersioning(); var app = builder.Build(); app.DefineApi() .HasApiVersion( 1.0 ) .HasApiVersion( 2.0 ) .ReportApiVersions() .HasMapping( api => {...
@davidfowl, [Preview 2](../releases/tag/v6.0.0-preview.2) is now available. The 🐀 🧶 has been eliminated. To the greatest extent possible, everything now only considers endpoints and their metadata. New Packages: - [Asp.Versioning.Http](https://www.nuget.org/packages/Asp.Versioning.Http) -...
@davidfowl , First, thanks for taking to the time to provide feedback. Philosophically, we are aligned. The goal of API Versioning has always been to provide ways to bolt on...
@davidfowl, Agreed. I strive to avoid forking code whenever I can. I'm not interested in owning it. I'm also aware of a few scenarios with teams who shall not be...
@captainsafia this is great news! Having access to services, even just on the `EndpointBuilder`, will be an improvement. Armed with this knowledge, I will the necessary adjustments for the `6.0`...
@davidfowl, `6.0` is finally signed and published with all the of aforementioned goodness. I'll start the process of looking into adding the officially supported grouping constructs for .NET 7.0 and...