-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make dynamic data requested instead of published (#7)
- Loading branch information
Showing
14 changed files
with
81 additions
and
110 deletions.
There are no files selected for viewing
This file contains 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 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 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,37 @@ | ||
{ | ||
"title": "Get dynamic reply", | ||
"description": "The reply containing dynamic information for 2300.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "../base_reply.schema.json" | ||
} | ||
], | ||
"properties": { | ||
"payload": { | ||
"description": "The return value(s) of the executed command.", | ||
"type": "object", | ||
"properties": {} | ||
} | ||
}, | ||
"required": [ | ||
"payload" | ||
], | ||
"if": { | ||
"properties": { | ||
"status": { | ||
"const": "success" | ||
} | ||
}, | ||
"required": [ | ||
"status" | ||
] | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"required": [] | ||
} | ||
} | ||
} | ||
} |
This file contains 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,15 @@ | ||
{ | ||
"title": "Get dynamic request", | ||
"description": "Get dynamic information from 2300. This information is retrieved on startup for 2200 or on a state change from CALIBRATING/OFFLINE to IDLE.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "../base_request.schema.json" | ||
} | ||
], | ||
"properties": { | ||
"command": { | ||
"const": "get_dynamic" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
...s/data/trigger_publish/reply.failure.json → tests/data/get_dynamic/reply.failure.json
This file contains 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{ | ||
"session_id": "eb4fdc2c-755b-47d8-af76-bbca2dce554d", | ||
"status": "failure", | ||
"payload": { | ||
"error_msg": "Lorem ipsum" | ||
}, | ||
"version": "0.1.0" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...s/data/trigger_publish/reply.success.json → tests/data/get_dynamic/reply.success.json
This file contains 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"status": "success", | ||
"payload": {}, | ||
"version": "0.1.0" | ||
} |
This file contains 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,4 @@ | ||
{ | ||
"command": "get_dynamic", | ||
"version": "0.1.0" | ||
} |
This file contains 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{ | ||
"session_id": "eb4fdc2c-755b-47d8-af76-bbca2dce554d", | ||
"status": "failure", | ||
"payload": { | ||
"error_msg": "Lorem ipsum" | ||
}, | ||
"version": "0.1.0" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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