-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Throwing FormatException
when a required property from Microsoft.Extensions.DependencyModel
is empy
#60842
Conversation
Tagging subscribers to this area: @eerhardt Issue DetailsUpdating property types (strings) to be nullable for:
This enables removal of all
|
Microsoft.Extensions.DependencyModel
Microsoft.Extensions.DependencyModel
@eerhardt Ready for review. |
…pty values. Adding unit tests to check for specific null/empty value cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good start, @filipjelic. Thanks.
I have left some comments.
src/libraries/Microsoft.Extensions.DependencyModel/src/Dependency.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/ResourceAssembly.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/RuntimeFallbacks.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/RuntimeFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/TargetInfo.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Show resolved
Hide resolved
Updating PR according to comments
@eerhardt Code and unit tests have been updated accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Just a few last comments to fix up.
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
Outdated
Show resolved
Hide resolved
…ncyContextJsonReader.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the contribution @filipjelic!
Microsoft.Extensions.DependencyModel
Microsoft.Extensions.DependencyModel
is empy
Microsoft.Extensions.DependencyModel
is empyFormatException
when a required property from Microsoft.Extensions.DependencyModel
is empy
Throwing
FormatException
when a required property is null/empty.This enables removal of all
!
operations addressed in #58139 (comment)