File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ import type { Json } from "@hyperjump/json-pointer";
2
2
import type { JsonSchemaType } from "../lib/common.js" ;
3
3
4
4
5
- export type JsonSchemaDraft06 = boolean | {
5
+ export type JsonSchemaDraft06Ref = {
6
6
$ref : string ;
7
- } | {
7
+ } ;
8
+ export type JsonSchemaDraft06Object = {
8
9
$schema ?: "http://json-schema.org/draft-06/schema#" ;
9
10
$id ?: string ;
10
11
title ?: string ;
@@ -43,5 +44,6 @@ export type JsonSchemaDraft06 = boolean | {
43
44
oneOf ?: JsonSchemaDraft06 [ ] ;
44
45
not ?: JsonSchemaDraft06 ;
45
46
} ;
47
+ export type JsonSchemaDraft06 = boolean | JsonSchemaDraft06Ref | JsonSchemaDraft06Object ;
46
48
47
49
export * from "../lib/index.js" ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { Json } from "@hyperjump/json-pointer";
2
2
import type { JsonSchemaType } from "../lib/common.js" ;
3
3
4
4
5
- export type JsonSchemaDraft201909 = boolean | {
5
+ export type JsonSchemaDraft201909Object = {
6
6
$schema ?: "https://json-schema.org/draft/2019-09/schema" ;
7
7
$id ?: string ;
8
8
$anchor ?: string ;
@@ -61,5 +61,6 @@ export type JsonSchemaDraft201909 = boolean | {
61
61
contentEncoding ?: string ;
62
62
contentSchema ?: JsonSchemaDraft201909 ;
63
63
} ;
64
+ export type JsonSchemaDraft201909 = boolean | JsonSchemaDraft201909Object ;
64
65
65
66
export * from "../lib/index.js" ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { Json } from "@hyperjump/json-pointer";
2
2
import type { JsonSchemaType } from "../lib/common.js" ;
3
3
4
4
5
- export type JsonSchemaDraft202012 = boolean | {
5
+ export type JsonSchemaDraft202012Object = {
6
6
$schema ?: "https://json-schema.org/draft/2020-12/schema" ;
7
7
$id ?: string ;
8
8
$anchor ?: string ;
@@ -62,5 +62,6 @@ export type JsonSchemaDraft202012 = boolean | {
62
62
contentEncoding ?: string ;
63
63
contentSchema ?: JsonSchemaDraft202012 ;
64
64
} ;
65
+ export type JsonSchemaDraft202012 = boolean | JsonSchemaDraft202012Object ;
65
66
66
67
export * from "../lib/index.js" ;
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import type { Json } from "@hyperjump/json-pointer";
2
2
import type { JsonSchemaType } from "../lib/common.js" ;
3
3
4
4
5
+ export type JsonSchemaType = JsonSchemaType ;
6
+
5
7
export type JsonSchema = boolean | {
6
8
$schema ?: "https://json-schema.org/validation" ;
7
9
$id ?: string ;
You can’t perform that action at this time.
0 commit comments