-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from ripienaar/187
(#187) Add a schema for the natsstream adapter
- Loading branch information
Showing
2 changed files
with
40 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"description": "Data generated by the NATS Stream Data Adapter", | ||
"title": "choria:adapters:natsstream:output:1", | ||
"type":"object", | ||
"required":[ | ||
"protocol", | ||
"data", | ||
"sender", | ||
"time" | ||
], | ||
"properties": { | ||
"protocol": { | ||
"type":"string", | ||
"enum": [ | ||
"choria:adapters:natsstream:output:1" | ||
] | ||
}, | ||
"data": { | ||
"type":"string", | ||
"description": "The unmodified content of the message received from NATS" | ||
}, | ||
"sender": { | ||
"type":"string", | ||
"description": "The Sender ID who produced the NATS message" | ||
}, | ||
"time": { | ||
"type":"integer", | ||
"description": "Unix time the message was converted in UTC time zone" | ||
} | ||
} | ||
} |