Skip to content

Commit 54d366e

Browse files
committed
feat: export dialectIdentifier constant
1 parent 88f77b3 commit 54d366e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/2020-12.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dialectIdentifier = 'https://json-schema.org/draft/2020-12/schema';
2+
13
type CoreKeywords = {
24
$anchor?: string;
35
$comment?: string;
@@ -6,7 +8,7 @@ type CoreKeywords = {
68
$dynamicRef?: string;
79
$id?: string;
810
$ref?: string;
9-
$schema?: 'https://json-schema.org/draft/2020-12/schema';
11+
$schema?: typeof dialectIdentifier;
1012
$vocabulary?: { [uri: string]: boolean };
1113
};
1214

0 commit comments

Comments
 (0)