-
Notifications
You must be signed in to change notification settings - Fork 68
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
feat: Create a common Address struct for V2 API #525
Conversation
848809c
to
83b94a3
Compare
83b94a3
to
dce0f45
Compare
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
from @tonyespy : let’s name it Address, so as not to confuse it with the old addressable object. |
Create a common Addressable struct for different endpoint protocols Signed-off-by: weichou <weichou1229@gmail.com>
Rename and add fields Signed-off-by: weichou <weichou1229@gmail.com>
- Rename Addressable to Address - Remove BaseAddress DTO because the json unmarshal func can't identify repeat fields - Add test for json unmarshalling and validation Close edgexfoundry#523 Signed-off-by: weichou <weichou1229@gmail.com>
I did the following changes, please help review.
|
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
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.
Rename Mqtt
to MQTT
, because you use REST
not Rest
and HTTP
not Http
Renamed MqttPubAddress to MQTTPubAddress. |
Fix edgexfoundry#523 Signed-off-by: weichou <weichou1229@gmail.com>
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
Codecov Report
@@ Coverage Diff @@
## master #525 +/- ##
==========================================
- Coverage 56.59% 55.98% -0.61%
==========================================
Files 119 120 +1
Lines 3564 3626 +62
==========================================
+ Hits 2017 2030 +13
- Misses 1357 1405 +48
- Partials 190 191 +1
Continue to review full report at Codecov.
|
PR Checklist
Please check if your PR fulfills the following requirements:
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-core-contracts/blob/master/.github/Contributing.md.
What is the current behavior?
Issue Number: #523
What is the new behavior?
Create a common Addressable struct for different endpoint protocols
Does this PR introduce a breaking change?
New Imports
Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information