Skip to content

Conversation

@martincostello
Copy link
Member

PR Title

Expose ParameterInfo for Minimal Actions API Explorer

PR Description

Populate the ParameterDescriptor for Minimal Actions parameters with a type that implements IParameterInfoParameterDescriptor so that any custom attributes on the parameter can be inspected.

Relates to #36438

Populate the ParameterDescriptor for Minimal Actions parameters with
a type that implements IParameterInfoParameterDescriptor so that any
custom attributes on the parameter can be inspected.
Relates to dotnet#36438.
@ghost ghost added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates community-contribution Indicates that the PR has been added by a community member labels Sep 12, 2021
@rafikiassumani-msft rafikiassumani-msft removed their assignment Sep 14, 2021
@rafikiassumani-msft rafikiassumani-msft added this to the 6.0-rc2 milestone Sep 14, 2021
@rafikiassumani-msft rafikiassumani-msft added old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels feature-openapi and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Sep 14, 2021
@martincostello martincostello marked this pull request as ready for review September 14, 2021 12:01
Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This will be helpful for #36525.

Addresses review feedback.
@captainsafia captainsafia merged commit e7bf642 into dotnet:main Sep 15, 2021
@ghost ghost modified the milestones: 6.0-rc2, 7.0-preview1 Sep 15, 2021
@captainsafia
Copy link
Member

/backport to release/6.0

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@captainsafia backporting to release/6.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Expose ParameterInfo for Minimal Actions API Explorer
Using index info to reconstruct a base tree...
M	src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs
CONFLICT (content): Merge conflict in src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Expose ParameterInfo for Minimal Actions API Explorer
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

captainsafia pushed a commit that referenced this pull request Sep 15, 2021
* Expose ParameterInfo for Minimal Actions API Explorer

Populate the ParameterDescriptor for Minimal Actions parameters with
a type that implements IParameterInfoParameterDescriptor so that any
custom attributes on the parameter can be inspected.
Relates to #36438.

* Remove file-scoped namespace

Addresses review feedback.
@martincostello martincostello deleted the Fix-ApiParameterDescription branch September 15, 2021 16:22
wtgodbe pushed a commit that referenced this pull request Sep 15, 2021
* Expose ParameterInfo for Minimal Actions API Explorer

Populate the ParameterDescriptor for Minimal Actions parameters with
a type that implements IParameterInfoParameterDescriptor so that any
custom attributes on the parameter can be inspected.
Relates to #36438.

* Remove file-scoped namespace

Addresses review feedback.

Co-authored-by: Martin Costello <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates that the PR has been added by a community member feature-openapi old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot inspect parameter attributes in API Explorer with Minimal Actions

3 participants