Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #611: Added protocol specification for acknowledgments. Extende…
…d the TopicPath.Criterion enum accordingly. Signed-off-by: Juergen Fickel <juergen.fickel@bosch-si.com>
- Loading branch information
Juergen Fickel
authored and
Juergen Fickel
committed
Feb 6, 2020
1 parent
7610d59
commit be98743
Showing
5 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
documentation/src/main/resources/jsonschema/protocol-ack.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"description": "The Ditto Protocol ACK/NACK is sent in response to an event.", | ||
"title": "Ditto Protocol acknowledgement", | ||
"properties": { | ||
"topic": { | ||
"type": "string", | ||
"description": "Contains the same topic as the commands which this response correlates to." | ||
}, | ||
"headers": { | ||
"type": "object", | ||
"description": "Additional headers.", | ||
"properties": { | ||
"correlation-id": { | ||
"type": "string", | ||
"description": "The correlation-id header is used for linking one message with another. It typically links a reply message with its requesting message." | ||
}, | ||
"version": { | ||
"type": "integer", | ||
"description": "Determines the version of the *Things* payload.", | ||
"minimum": 1, | ||
"maximum": 2 | ||
} | ||
}, | ||
"required": [ "correlation-id" ] | ||
}, | ||
"path": { | ||
"type": "string", | ||
"description": "A Path that references a part of a Thing which is affected by this ACK.\nExamples:\n * `/feature/location/properties/longitude` (a single sensor value)\n * `/` (the whole Thing)" | ||
}, | ||
"value": { | ||
"type": ["object","string","number","array","boolean"], | ||
"description": "The _value_ field contains the optional payload of the ACK." | ||
}, | ||
"status": { | ||
"type": "integer", | ||
"description": "The status code that indicates the result of the ACK. The semantics of the used status codes are based on the [HTTP status codes](https://tools.ietf.org/html/rfc7231#section-6)." | ||
} | ||
}, | ||
"required": [ "topic", "headers", "path", "status" ] | ||
} |
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
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