-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathindex.ts
More file actions
54 lines (50 loc) · 1.89 KB
/
index.ts
File metadata and controls
54 lines (50 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export { compileSchema } from "./src/compileSchema";
export type { CompileOptions } from "./src/compileSchema";
export type { Context, SchemaNode, GetNodeOptions, ValidateReturnType } from "./src/SchemaNode";
export type { DataNode } from "./src/methods/toDataNodes";
export type { Draft, DraftVersion } from "./src/Draft";
export type {
JsonError,
JsonAnnotation,
JsonPointer,
JsonSchema,
BooleanSchema,
OptionalNodeOrError,
NodeOrError
} from "./src/types";
export type {
Keyword,
Maybe,
ValidationPath,
JsonSchemaReducerParams,
JsonSchemaReducer,
JsonSchemaResolverParams,
JsonSchemaResolver,
JsonSchemaValidatorParams,
JsonSchemaValidator,
ValidationAnnotation,
ValidationReturnType
} from "./src/Keyword";
export { default as settings } from "./src/settings";
// drafts
export { draft04 } from "./src/draft04";
export { draft06 } from "./src/draft06";
export { draft07 } from "./src/draft07";
export { draft2019 } from "./src/draft2019";
export { draft2020 } from "./src/draft2020";
export { draftEditor } from "./src/draftEditor";
// keywords
export { oneOfFuzzyKeyword, oneOfKeyword } from "./src/keywords/oneOf";
export { propertyDependenciesKeyword } from "./src/keywords/propertyDependencies";
// errors
export { render } from "./src/errors/render";
export type { Annotation, AnnotationData, ErrorConfig } from "./src/types";
// utilities
export { getTypeOf } from "./src/utils/getTypeOf";
export { isReduceable } from "./src/SchemaNode";
export { isJsonError, isJsonAnnotation, isAnnotation, isSchemaNode, isJsonSchema, isBooleanSchema } from "./src/types";
export { extendDraft, addKeywords } from "./src/Draft";
export { mergeNode } from "./src/mergeNode";
export { mergeSchema } from "./src/utils/mergeSchema";
export { getSchemaType } from "./src/utils/getSchemaType";
export { default as sanitizeErrors } from "./src/utils/sanitizeErrors";