Skip to content

Will OperationDefaultValues still be required in .NET 9.0? #57837

Answered by captainsafia
marcominerva asked this question in Q&A
Discussion options

You must be logged in to vote

@marcominerva Thanks for reminding me that I actually need to make some updates to this branch before we merge. We shouldn't be using the ApplyOperationDefaultValues as is in this example. The only behavior that we need to retain is support for setting the Deprecated property based on the IsDeprecated method. That's because we don't really have a good strategy for documenting deprecation status in ApiExplorer yet. An issue was recently opened about this in the dotnet/aspnetcore repo that covers what we might need to do to be able to get rid of this workaround. See #57853 for more info.

The other workarounds that are used here can be removed. I'll update the branch.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcominerva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants