Skip to content

Commit 4990926

Browse files
committed
Fix top-level snapshots as optional in the JSON Schema
1 parent 707c6f5 commit 4990926

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

schemas/data.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
}
6363
}
6464
},
65-
"required": ["browsers", "features", "groups"],
65+
"required": ["browsers", "features", "groups", "snapshots"],
6666
"additionalProperties": false,
6767
"definitions": {
6868
"Discouraged": {

types.quicktype.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface WebFeaturesData {
1717
/**
1818
* Snapshot identifiers and data
1919
*/
20-
snapshots?: { [key: string]: SnapshotData };
20+
snapshots: { [key: string]: SnapshotData };
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)