Skip to content

Commit b2b6762

Browse files
ddbeckjcscottiii
andcommitted
Add unintentionally missing required fields
Co-authored-by: James C Scott III <[email protected]>
1 parent 95bf898 commit b2b6762

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

schemas/data.schema.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"$ref": "#/definitions/Discouraged"
144144
}
145145
},
146-
"required": ["name", "description", "description_html", "spec"]
146+
"required": ["name", "description", "description_html", "spec", "status"]
147147
},
148148
"GroupData": {
149149
"type": "object",
@@ -222,7 +222,8 @@
222222
}
223223
}
224224
}
225-
]
225+
],
226+
"required": ["baseline", "support"]
226227
},
227228
"Release": {
228229
"description": "Browser release information",
@@ -251,7 +252,8 @@
251252
"description": "Specification",
252253
"$ref": "#/definitions/URL"
253254
}
254-
}
255+
},
256+
"required": ["name", "spec"]
255257
},
256258
"StringOrStrings": {
257259
"oneOf": [

types.quicktype.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface FeatureData {
102102
* Whether a feature is considered a "Baseline" web platform feature and when it achieved
103103
* that status
104104
*/
105-
status?: StatusHeadline;
105+
status: StatusHeadline;
106106
[property: string]: any;
107107
}
108108

@@ -130,6 +130,10 @@ export interface StatusHeadline {
130130
* Whether the feature is Baseline (low substatus), Baseline (high substatus), or not (false)
131131
*/
132132
baseline: boolean | BaselineEnum;
133+
/**
134+
* Browser versions that most-recently introduced the feature
135+
*/
136+
support: Support;
133137
/**
134138
* Date the feature achieved Baseline high status
135139
*/
@@ -138,10 +142,6 @@ export interface StatusHeadline {
138142
* Date the feature achieved Baseline low status
139143
*/
140144
baseline_low_date?: string;
141-
/**
142-
* Browser versions that most-recently introduced the feature
143-
*/
144-
support: Support;
145145
/**
146146
* Statuses for each key in the feature's compat_features list, if applicable. Not available
147147
* to the npm release of web-features.
@@ -200,10 +200,10 @@ export interface SnapshotData {
200200
/**
201201
* Short name
202202
*/
203-
name?: string;
203+
name: string;
204204
/**
205205
* Specification
206206
*/
207-
spec?: string;
207+
spec: string;
208208
[property: string]: any;
209209
}

0 commit comments

Comments
 (0)