Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 3bd88ee

Browse files
committed
Add last-updated tracking.
Since I just went through and looked at all of these, this adds a date stamp for such things. It is required throughout the data file if it is used at all, but it can be left out entirely (because I am not going to look through the obsolete files). All four data files (validator/hyper + modern/obsolete) are valid against the schema as of this commit.
1 parent 1d3d8e8 commit 3bd88ee

File tree

4 files changed

+108
-0
lines changed

4 files changed

+108
-0
lines changed

_data/hyper-libraries-modern.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
license: MIT
66
date-draft: []
77
draft: [7]
8+
last-updated: "2022-08-31"

_data/schema.yml

+38
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ $id: https://json-schema.org/implementations/schema
33
type: array
44
items:
55
$ref: "#/$defs/language"
6+
$comment: |
7+
The following if/then ensures that if last-updated is used
8+
anywhere, then it is required everywhere. This allows it
9+
to be required in the modern data files and unused in the
10+
obsolete data files.
11+
if:
12+
contains:
13+
required: [implementations]
14+
properties:
15+
implementations:
16+
contains:
17+
required: [last-updated]
18+
then:
19+
properties:
20+
implementations:
21+
items:
22+
required: [last-updated]
623
$defs:
724
language:
825
description: |
@@ -28,6 +45,14 @@ $defs:
2845
type: array
2946
items:
3047
$ref: "#/$defs/implementation"
48+
$comment: |
49+
The following if/then ensures that if the first
50+
if:
51+
prefixItems:
52+
- required: [last-updated]
53+
then:
54+
items:
55+
required: [last-updated]
3156
notes:
3257
type: [string, "null"]
3358
implementation:
@@ -70,3 +95,16 @@ $defs:
7095
Additional information. Overly promotional (or critical)
7196
wording should be avoided.
7297
type: string
98+
last-updated:
99+
description: |
100+
The date (in whatever timezone was relevant at the time)
101+
the information for this entry was last updated. This
102+
should only be changed when the implementation's
103+
documentation has been checked against the entry, not
104+
when minor formatting or other updates are done.
105+
$comment: |
106+
"pattern" does the validation work here, "format" is
107+
just for semantic clarity.
108+
type: string
109+
format: date
110+
pattern: '^\d\d\d\d-[01]\d-[0123]\d$'

0 commit comments

Comments
 (0)