We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrectly showing V1 in Swagger when explicitly removed from a verson, and changing the start version.
e.g. only v2 and v3 should be accessable
services.AddApiVersioning(options => { options.Conventions = new IntroducedApiVersionConventionBuilder(2, 3); options.ReportApiVersions = true; }); services.AddVersionedApiExplorer( options => { options.GroupNameFormat = "'v'VVV"; options.SubstituteApiVersionInUrl = true; });
But this is showing as V1 still
[ApiController] [Route("api/v{api-version:apiVersion}/events/{eventId}/media")] [IntroducedInApiVersion(1)] [RemovedAsOfApiVersion(2)] [ResponseCache(CacheProfileName = CacheProfileNames.None)] public class MediaController : Controller { private readonly IMediaService _mediaService; public MediaController(IMediaService mediaService) { _mediaService = mediaService; } [HttpGet] public async Task<ActionResult<MediaV1[]>> Get(string eventId) { var media = (await _mediaService.GetForEventAsync(eventId)) .Select(m => MediaV1.MapFrom(m, true, false)) .ToArray(); return media; } }
The text was updated successfully, but these errors were encountered:
Note: I can just remove this as I have removed V1 so not strictly a problem - I just would not expect it to show.
Sorry, something went wrong.
No branches or pull requests
Incorrectly showing V1 in Swagger when explicitly removed from a verson, and changing the start version.
e.g. only v2 and v3 should be accessable
But this is showing as V1 still
The text was updated successfully, but these errors were encountered: