You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the observations I believe that the Ecma Module is messing with the nullability information somehow; I haven't worked with that so far so I am not sure what within that module may be causing the issue. If there are any ideas, then I will be happy to investigate and provide a fix if and when I get time in future.
The text was updated successfully, but these errors were encountered:
Brief explanation
Having multiple optional and required properties on a class results in unexpected nullability info in the generated types.
Issue on commit id: 27d7f9e
Minimal Example
The following dotnet module generated the corresponding types as shown
Further Investigation
I have investigated the issue rather thoroughly and implemented the following reflection method to test where the issue is coming from
Within
TypeDefinitionsGenerator.cs
the assembly is loaded using an assemblyResolver; To pinpoint the issue I callMyReflect
as following:Which provides the following information (note the output has been cut down)
Hypothesis
Based on the observations I believe that the Ecma Module is messing with the nullability information somehow; I haven't worked with that so far so I am not sure what within that module may be causing the issue. If there are any ideas, then I will be happy to investigate and provide a fix if and when I get time in future.
The text was updated successfully, but these errors were encountered: