Skip to content

Lack of nullability of reference types #3041

Open
@charlesroddie

Description

@charlesroddie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions