diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-06-01 22:43:53 +0200 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-06-01 22:43:53 +0200 |
| commit | d2dd1134bc8065f001ebb3feff54a309098f861a (patch) | |
| tree | 65d349eeb03d42e1f4b498305b2a4fe2538a2f03 /doc | |
| parent | ae442b8f192ab0f9d4de483462d5d18c43d9ec23 (diff) | |
Clarify type of id used
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/specs/20200601-serving-different-versions.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/specs/20200601-serving-different-versions.md b/doc/specs/20200601-serving-different-versions.md index 545febb..9eb1bd8 100644 --- a/doc/specs/20200601-serving-different-versions.md +++ b/doc/specs/20200601-serving-different-versions.md @@ -118,7 +118,7 @@ a new generator that will generate an RSS 2.0 file ## When Adding a Post When the add function of the blog is triggered, it will shift the posts -as it currently does and then will generate a new UUID and take the +as it currently does and then will generate a new unique ID and take the current timestamp. This will be saved in a JSON file in the output directory called "metadata.json" @@ -156,9 +156,14 @@ This spec introduces a data structure to help generate output. tPost <Object> +html <String> // The markup of the post +publishedOn <Number> // The timestamp when this post was added - +uuid <String> // The UUID for this post + +id <String> // The Unique ID for this post ``` +Given that posts won't come in at a high enough rate, and that the +purpouse is only to help feed readers identify each unique piece of +content, for this version the `id` will be the same number as the +`publishedOn`. + ## The Generator Interface Every generator must implement this interface in order to work with |