-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fix naming scheme, property nullabilities #321
Conversation
Putting into draft mode until Pickup buy API issues have been resolved. |
- Some properties had to be renamed to avoid conflicts (look for "// X is the enclosing class name" comments) - Removed Verify/VerifyStrict parameters from Address (naming conflict, parameters aren't actually part of the Address object, they're API call params) - All properties are nullable (most if not all will NOT be null, but since they could be, to avoid compile complaints) - Addressed some IDE suggestions/warnings
- Pickup buy is failing currently (API 500 error)
Pickup test has been disabled for the time being. Re-enable ASAP. |
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.
- I don't like the renamed property changes, but it is what it is. Please call them out in the CHANGELOG.
- Now that things are marked nullable, we need to remove the compile warning check we ignored so that anything added in the future will throw errors appropriately if we forgot. I'm not seeing that here
<PackageReference Include="EasyVCR" Version="[0.4.0, 1.0.0)" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="[17.3.0, 18.0.0)" /> |
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.
I'm tired of seeing these changes in PRs. Can we enforce SOME kind of style for these? They are always getting bumped one way then bumped back the very next commit.
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.
I'll try to narrow down on what exactly does this
- Remove old nullability warning suppressions from main namespace (add to EasyPost.Tests) - New nullability helper functions to check for nullable elements (see ShipmentService.CreateReturn)
- Remove now-unneeded nullability utilities - Update CHANGELOG.md with info about nullable properties
- Suppress some IDE suggestions (I know better than the IDE sometimes)
Description
Request
easypost-csharp/EasyPost/Models/API/Shipment.cs
Line 118 in 5e539f2
Testing
Pull Request Type
Please select the option(s) that are relevant to this PR.