-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Net8.0: DTO Class Settings nullable not applied for FileParameter arguments #5110
Comments
The fix looks like this: Just check if the parameter is nullable and add the nullable type annotation (being the question-mark):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 14.2.0.0
Even though I enabled the options
and
the argument FileParameter is not flagged as nullable.
I have the following Open API example spec:
The functions signature created looks like this:
public virtual async System.Threading.Tasks.Task<Item> ItemAsync(string id, FileParameter cover_image = null, string? name = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
Expected behavior
The functions should have the nullable marker (the question mark) at the FileParameter argument:
public virtual async System.Threading.Tasks.Task<Item> ItemAsync(string id, FileParameter? cover_image, string? name, System.Threading.CancellationToken cancellationToken)
The text was updated successfully, but these errors were encountered: