Skip to content

DX-2970 Documenting UnparsedAddress as Read-Only #94

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

Merged
merged 3 commits into from
Nov 21, 2022
Merged

Conversation

brianluisgomez
Copy link
Contributor

No description provided.

@brianluisgomez brianluisgomez requested a review from a team November 15, 2022 12:21
@@ -22,7 +22,7 @@ class ServiceAddress {
"AddressLine2" => array("type" => "string"),
"PlusFour" => array("type" => "string"),
"AddressType" => array("type" => "string"),
"UnparsedAddress" => array("type" => "string")
"UnparsedAddress" => array("type" => "string") // Note that UnparsedAddress is Read-Only!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good coding practice is to not comment your code but if you do put it before the line of code under context

@@ -22,7 +22,8 @@ class ServiceAddress {
"AddressLine2" => array("type" => "string"),
"PlusFour" => array("type" => "string"),
"AddressType" => array("type" => "string"),
"UnparsedAddress" => array("type" => "string") // Note that UnparsedAddress is Read-Only!
// Note that UnparsedAddress is Read-Only.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brianluisgomez How about expanding the comment to also indicate passing it does not automatically populate individual Address fields? read-only generally means once it's set it cannot be updated!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, I expanded the comment

@brianluisgomez brianluisgomez merged commit d0761fc into master Nov 21, 2022
@brianluisgomez brianluisgomez deleted the DX-2970 branch November 21, 2022 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants