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

OpenApi will use System.ComponentModel.Attributes changed to Fluent mode. #59393

Open
1 task done
YataoFeng opened this issue Dec 9, 2024 · 0 comments
Open
1 task done
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-openapi

Comments

@YataoFeng
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Suppose I have 20 parameters in a class, and each parameter requires many System Components.Model.Attributes, this will look confusing.

description、required、defaultValue、range、minLength、maxLength、regularExpression...

emailAddress、phone... and other custom validation.

Describe the solution you'd like

Can OpenApi support it will use System.ComponentModel.Attributes changed to Fluent mode.
EntityFramework provides two options, Fluent and Attributes.

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-openapi
Projects
None yet
Development

No branches or pull requests

2 participants