-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mainly because pyyaml hasn't been published to work with Python3.7 (yaml/pyyaml#126) and this isn't super critical anyway
- Loading branch information
Showing
10 changed files
with
82 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
include README.rst setup.py conftest.py MANIFEST.in *.txt | ||
global-include README.md README.rst | ||
recursive-include hedwig format_schema.yaml | ||
recursive-include hedwig format_schema.json | ||
prune deps | ||
graft tests | ||
global-exclude *~ |
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,58 @@ | ||
{ | ||
"id": "https://hedwig.automatic.com/schema#", | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"description": "Schema for Hedwig messages", | ||
"required": [ | ||
"id", | ||
"schema", | ||
"format_version", | ||
"metadata", | ||
"data" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "Message identifier", | ||
"minLength": 36, | ||
"maxLength": 36, | ||
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" | ||
}, | ||
"schema": { | ||
"type": "string", | ||
"description": "Schema to validate the data object with", | ||
"minLength": 1 | ||
}, | ||
"format_version": { | ||
"type": "string", | ||
"description": "Format version for the message", | ||
"enum": [ | ||
"1.0" | ||
] | ||
}, | ||
"metadata": { | ||
"type": "object", | ||
"description": "Metadata associated with the message", | ||
"properties": { | ||
"publisher": { | ||
"type": "string", | ||
"description": "Message publisher service" | ||
}, | ||
"timestamp": { | ||
"type": "number", | ||
"description": "Timestamp in epoch milliseconds (integer)", | ||
"format": "int" | ||
}, | ||
"headers": { | ||
"type": "object", | ||
"description": "Custom headers associated with the message" | ||
} | ||
}, | ||
"additionalProperties": true | ||
}, | ||
"data": { | ||
"type": "object", | ||
"description": "Message data" | ||
} | ||
}, | ||
"additionalProperties": true | ||
} |
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
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
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