-
Notifications
You must be signed in to change notification settings - Fork 70
feature: 'meta' deltas #454
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
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
59579fc
feature: support 'meta' deltas
sbender9 ebd2dd6
update: delta schema to include meta
sbender9 c6ad87b
chore: add tests for meta deltas
sbender9 802fa0b
update: add the meta delta to the delta documentation
sbender9 c41d8db
update: use ./definitions.json#/definitions/meta for the meta delta v…
sbender9 f8e25b6
fix: syntax error in delta schema
sbender9 7aef93e
fix: support both meta and values in a delta
sbender9 dc873a3
fix: add mandatory description to meta deltas (#489)
bkp7 65a573c
docs: modify re meta deltas (#491)
bkp7 ebb46a9
fix: remove additionalProperties from meta deltas (#492)
bkp7 6a8e2e1
style: modify and reformat json test files (#493)
bkp7 d4b3e59
chore: remove addMetas already implemented in master
tkurki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "context": "vessels.urn:mrn:imo:mmsi:234567890", | ||
| "updates": [ | ||
| { | ||
| "timestamp": "2014-08-15T19:02:31.507Z", | ||
| "meta": [ | ||
| { | ||
| "path": "environment.wind.speedApparent", | ||
| "value": { | ||
| "units": "m/s", | ||
| "description": "Apparent wind speed", | ||
| "displayName": "Apparent Wind Speed", | ||
| "shortName": "AWS", | ||
| "zones": [{ | ||
| "upper": 15.4333, | ||
| "state": "warn", | ||
| "message": "high wind speed" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "context": "vessels.urn:mrn:imo:mmsi:234567890", | ||
| "updates": [ | ||
| { | ||
| "meta": [ | ||
| { | ||
| "path": "propulsion.0.revolutions" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "context": "vessels.urn:mrn:imo:mmsi:234567890", | ||
| "updates": [ | ||
| { | ||
| "source": { | ||
| "label": "N2000-01", | ||
| "type": "NMEA2000", | ||
| "src": "017", | ||
| "pgn": 127488 | ||
| }, | ||
| "timestamp": "2013-10-08T15:47:28.263Z", | ||
| "meta": [ | ||
| { | ||
| "path": "propulsion.0.revolutions", | ||
| "value": { | ||
| "description": "Engine revolutions (x60 for RPM)", | ||
| "units": "Hz" | ||
| } | ||
| } | ||
| ], | ||
| "values": [ | ||
| { | ||
| "path": "propulsion.0.revolutions", | ||
| "value": 11 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "context": "vessels.urn:mrn:imo:mmsi:234567890", | ||
| "updates": [ | ||
| { | ||
| "meta": [ | ||
| { | ||
| "path": "environment.depth.belowTransducer", | ||
| "value": { | ||
| "description": "Depth below Transducer", | ||
| "units": "m", | ||
| "timeout": 2.5, | ||
| "zones": [ | ||
| { | ||
| "upper": 5.0, | ||
| "state": "warn", | ||
| "message": "Shallow water" | ||
| } | ||
| ], | ||
| "warnMethod": ["sound"] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.