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

Fix parameter nullability in IInputValueFormatter #6609

Closed
wants to merge 1 commit into from

Conversation

aradalvand
Copy link
Contributor

@aradalvand aradalvand commented Oct 17, 2023

A null value is never passed to IInputValueFormatter.Format, so the parameter doesn't need to be marked as nullable.

Related Slack discussion: https://hotchocolategraphql.slack.com/archives/CD9TNKT8T/p1697529768155779

@CLAassistant
Copy link

CLAassistant commented Oct 17, 2023

CLA assistant check
All committers have signed the CLA.

@michaelstaib
Copy link
Member

Thats not enough ... there are code paths that invoke it with a nullable contract.
Also there are at least 10 implementations of this interface.
Can you have a look at that?

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

Successfully merging this pull request may close these issues.

3 participants