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

Lack of nullability of reference types #3041

Open
charlesroddie opened this issue Jan 1, 2025 · 0 comments
Open

Lack of nullability of reference types #3041

charlesroddie opened this issue Jan 1, 2025 · 0 comments
Labels

Comments

@charlesroddie
Copy link

Describe the bug

Properties that should be nullable are not listed as nullable if they are reference types.
For example, in a session s, s.AmountTotal is correctly Nullable<int64>, but s.ClientReferenceId is a string when it should be a string?.
Discrepancy between:

Presumably this library was never updated to support nullable reference types.

I would estimate it would take 2x longer to write dotnet code without nullable reference types, since for every use of a property you would need to refer to the online documentation to see if it is nullable or not and add manual casts to nullable before proceeding.

To Reproduce

  1. Get a Session s
  2. Type s.ClientReferenceId
  3. The result is a string

Expected behavior

The result should be a string?.

Code snippets

No response

OS

Windows

.NET version

dotnet9

Library version

current

API version

current

Additional context

No response

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

No branches or pull requests

1 participant