Skip to content

Attributes on parameters of primary constructors should be reflected in generated OpenAPI documents #61538

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

Open
mikekistler opened this issue Apr 17, 2025 · 1 comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-openapi

Comments

@mikekistler
Copy link
Contributor

Currently OpenAPI document generation does not extract metadata from attributes on parameters of a class/record/struct primary constructor. However, the new validation feature for minimal APIs will perform these validations, so we should update OpenAPI generation to incorporate these into the generated documents.

@mikekistler mikekistler added feature-openapi area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc and removed area-web-frameworks labels Apr 17, 2025
@martincostello
Copy link
Member

This would probably explain this change I had to make in Swashbuckle just for net10.0 that I was getting confused about and then forgot to file an issue for: domaindrivendev/Swashbuckle.AspNetCore@8ae0a45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-openapi
Projects
None yet
Development

No branches or pull requests

2 participants