Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

YC
Copy link

@YC YC commented Aug 30, 2025

Update documentation of ApiVersionReader in ApiVersioningOptions

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Summary of the changes

Update documentation of ApiVersioningOptions.ApiVersionReader to reflect actual default value.

Description

The existing documentation mentions only QueryStringApiVersionReader.
Instead, the default is Combine( new QueryStringApiVersionReader(), new UrlSegmentApiVersionReader() ).

https://github.com/dotnet/aspnet-api-versioning/blob/v8.1.0/src/Common/src/Common/ApiVersioningOptions.cs#L65-L69
https://github.com/dotnet/aspnet-api-versioning/blob/v8.1.0/src/Common/src/Common/ApiVersionReader.cs#L25

Fixes #1098

YC added 2 commits August 30, 2025 20:16
The default value is a combination of QueryStringApiVersionReader and UrlSegmentApiVersionReader
Resolves dotnet#1098
@YC
Copy link
Author

YC commented Aug 30, 2025

@dotnet-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation: Default value for ApiVersionReader is misleading
1 participant