Skip to content

Support ASP.NET Core 2.2 Default Parameter Value in API Explorer #414

New issue

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

Closed
commonsensesoftware opened this issue Dec 16, 2018 · 0 comments
Closed
Assignees
Milestone

Comments

@commonsensesoftware
Copy link
Collaborator

The ASP.NET Core API Explorer design did not include metadata to describe whether a parameter is required and what the default value is, unless it was defined as a route parameter. ApiParameterDescription was updated in ASP.NET Core 2.2 to include new properties to support this information.

Requirements

  • Support ApiParameterDescription.IsRequired
  • Support ApiParameterDescription.DefaultValue
  • Fix ApiParameterDescription.RouteInfo so that ApiParameterRouteInfo.DefaultValue is only used when the value actually a route parameter (ex: versioning by URL segment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant