Chris Martinez

Results 281 comments of Chris Martinez
trafficstars

I guess I need to troll here more often 😛. I just happened be looking for something else and came across this issue. API Versioning provides the built-in extension method...

Interesting. I would have expected it be generated without the route constraint (e.g. `apiVersion`) as: `"operationId": "api/v{version}/odata/Things",` Based on the configuration you've shared, it doesn't appear that you are using...

Ah ... I see. I believe this is a behavior of however the OpenAPI generator creates the `operationId` for the document. In this case, I believe it's what Swashbuckle does....

I wasn't able to track down how this behavior is changed. [DefaultOperationIdSelector](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/master/src/Swashbuckle.AspNetCore.SwaggerGen/SwaggerGenerator/SwaggerGeneratorOptions.cs#L75) in `SwaggerGeneratorOptions` appears to use either the route name and falls back to the endpoint name. The route...

Seems reasonable. Any supported change here will need the reciprocal in the new client-side features or they'll be mismatched. I'm normally resistant to _seal_ anything, but this something that has...

Indeed. Talking issues through have a way of working out a solution. It's arguably not the _ideal_ solution, but it works with somewhat minimal effort and supplants having to fork...

Most of the core features are based on what is now the [Microsoft REST Guidelines](https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md). Before that existed, there were internal docs floating around inside Microsoft that defined `api-supported-versions` and...

The short answer, which you're probably not going to like, is that this is (now) _by design_. I really try to avoid breaking changes - especially behavioral changes, but sometimes...

If dotnet/aspnetcore#32957 does the _right_ thing and enables the necessary hooks, then - yes - the functionality will return in the `7.0` timeframe. Currently, there is simply no way to...

@pinkfloydx33 is correct. thank you. The setup when using controllers should look like: ```c# public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddApiVersioning(options => options.ReportApiVersions = true) .AddMvc(); } ``` This is...