Skip to content
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

Controller attribute changes #1503

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Conversation

bkoelman
Copy link
Member

@bkoelman bkoelman commented Mar 16, 2024

Remove unneeded [FromBody] from overridden controller methods, add [Required] so OpenAPI can determine whether parameters are required.

QUALITY CHECKLIST

…equired] so OpenAPI can determine whether parameters are required
@bkoelman bkoelman force-pushed the controllers-frombody-required branch from 17db888 to 6fec255 Compare March 16, 2024 13:13
Copy link

codecov bot commented Mar 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.78%. Comparing base (a74a3eb) to head (6fec255).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1503   +/-   ##
=======================================
  Coverage   90.78%   90.78%           
=======================================
  Files         346      346           
  Lines       11044    11044           
  Branches     1813     1813           
=======================================
  Hits        10026    10026           
  Misses        669      669           
  Partials      349      349           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bkoelman bkoelman marked this pull request as ready for review March 16, 2024 14:15
@bkoelman bkoelman merged commit 6b9d4b8 into master Mar 16, 2024
16 checks passed
@bkoelman bkoelman deleted the controllers-frombody-required branch March 16, 2024 14:16
bkoelman added a commit that referenced this pull request Mar 16, 2024
…most of the previous PR (#1503). It turns out ASP.NET ModelState doesn't look at attributes on base parameters
bkoelman added a commit that referenced this pull request Mar 16, 2024
… most of the previous PR (#1503). It turns out that ASP.NET ModelState doesn't look at attributes on base parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant