You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MediaTypeApiVersionReaderBuilder implements IApiVersionParameterSource which is used to describe where an API version parameter can appear. The current implementation does not report its source correctly if there are no parameter names defined.
Expected Behavior
MediaTypeApiVersionReaderBuilder.AddParameters should indicate that it versions by media type, even when there are no parameters. This would have parity with UrlSegmentApiVersionReader, which also does not have parameters.
Steps To Reproduce
varreader=newMediaTypeApiVersionReaderBuilder().Build();Assert.True(reader.VersionsByMediaType(),"Reader does not version by media type");
This fails when it should succeed.
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
MediaTypeApiVersionReaderBuilder
implementsIApiVersionParameterSource
which is used to describe where an API version parameter can appear. The current implementation does not report its source correctly if there are no parameter names defined.Expected Behavior
MediaTypeApiVersionReaderBuilder.AddParameters
should indicate that it versions by media type, even when there are no parameters. This would have parity withUrlSegmentApiVersionReader
, which also does not have parameters.Steps To Reproduce
This fails when it should succeed.
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: