-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add Merge-Patch Support Handling #1283
Changes from all commits
46a21d8
397debf
603d604
7d58442
ddc1af2
a614463
d4d8f6c
e2fb50b
2148a25
6ca98a4
ce7746b
af14fde
477f298
e2d57bc
8d7b391
8510ad2
2959af4
1b18903
bcc8ba5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
- Add NGSI-LD Merge-Patch Support Handling #1283 | ||
- Update to offer NGSI-LD 1.6.1. Registrations #1302 | ||
- Document removal of support for NGSI-LD 1.3.1 Interface |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -363,6 +363,7 @@ function registerDevice(deviceObj, callback) { | |
deviceObj.type = deviceData.type; | ||
deviceObj.staticAttributes = deviceData.staticAttributes; | ||
deviceObj.commands = deviceData.commands; | ||
deviceObj.lazy = deviceData.lazy; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you explain why you included this line and how it is related with functionalities implemented in this PR (merge patch) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is necessary to ensure that a lazy attribute may be merged-patched (see use on line lib/services/northBound/contextServer-NGSI-LD.js - 455) |
||
if ('timestamp' in deviceData && deviceData.timestamp !== undefined) { | ||
deviceObj.timestamp = deviceData.timestamp; | ||
} | ||
|
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.
Those parameters need to be documented
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.
Fixed af14fde