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

Required Parameters #2608

Open
jaymedavis opened this issue Nov 16, 2022 · 1 comment
Open

Required Parameters #2608

jaymedavis opened this issue Nov 16, 2022 · 1 comment

Comments

@jaymedavis
Copy link
Contributor

jaymedavis commented Nov 16, 2022

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

I originally tried making required parameters passed as arguments to the services, and any "optional" be passed in the XOptions classes. This broke down pretty fast, because services having a dozen arguments would be gnarly.

Describe the solution you'd like

Required Parameters to the rescue! The properties on the entity can now specify if they are "required" with regards to the service, or optional

https://blog.ndepend.com/c-11-required-members/

Describe alternatives you've considered

No response

Additional context

I think this would be a really cool feature to help developers know (without looking at documentation) which entity properties are required, and which ones are not.

@jaymedavis jaymedavis changed the title Requires Parameters Required Parameters Nov 16, 2022
@pakrym-stripe
Copy link
Contributor

This indeed looks like a great fit for our Option classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants