Skip to content

Commit

Permalink
export ValidationError and MissingRefError, closes #1926, closes #1840 (
Browse files Browse the repository at this point in the history
#2020)

* expost Validation Error - fix to #1926

* fixed prettier issues

Co-authored-by: Evgeny Poberezkin <[email protected]>
  • Loading branch information
dannyb648 and epoberezkin authored Nov 13, 2022
1 parent 65220d6 commit 16af695
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/2019.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ export {DefinedError} from "./vocabularies/errors"
export {JSONType} from "./compile/rules"
export {JSONSchemaType} from "./types/json-schema"
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
export {default as ValidationError} from "./runtime/validation_error"
export {default as MissingRefError} from "./compile/ref_error"
2 changes: 2 additions & 0 deletions lib/2020.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ export {DefinedError} from "./vocabularies/errors"
export {JSONType} from "./compile/rules"
export {JSONSchemaType} from "./types/json-schema"
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
export {default as ValidationError} from "./runtime/validation_error"
export {default as MissingRefError} from "./compile/ref_error"
2 changes: 2 additions & 0 deletions lib/ajv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ export {DefinedError} from "./vocabularies/errors"
export {JSONType} from "./compile/rules"
export {JSONSchemaType} from "./types/json-schema"
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
export {default as ValidationError} from "./runtime/validation_error"
export {default as MissingRefError} from "./compile/ref_error"
2 changes: 2 additions & 0 deletions lib/jtd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,5 @@ export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./com

export {JTDSchemaType, SomeJTDSchemaType, JTDDataType}
export {JTDOptions}
export {default as ValidationError} from "./runtime/validation_error"
export {default as MissingRefError} from "./compile/ref_error"

0 comments on commit 16af695

Please sign in to comment.