Skip to content

Commit

Permalink
feat(reference): expose JSON Pointer utils
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Jul 20, 2021
1 parent 25f3296 commit b7bd3f2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apidom/packages/apidom-reference/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,23 @@ export { default as OpenApi3_1DereferenceStrategy } from './dereference/strategi
export { default as options } from './options';
export { merge as mergeOptions } from './options/util';

export { default as Reference } from './Reference';
export { default as ReferenceSet } from './ReferenceSet';

export {
escape as jsonPointerEscape,
unescape as jsonPointerUnescape,
uriToPointer as uriToJsonPointer,
parse as jsonPointerParse,
compile as jsonPointerCompile,
join as jsonPointerJoin,
evaluate as jsonPointerEvaluate,
} from './selectors/json-pointer';
export {
EvaluationJsonPointerError,
InvalidJsonPointerError,
} from './selectors/json-pointer/errors';

export const readFile = async (uri: string, options = {}): Promise<Buffer> => {
const mergedOptions = mergeOptions(defaultOptions, options);
const sanitizedURI = url.isFileSystemPath(uri) ? url.fromFileSystemPath(uri) : uri;
Expand Down

0 comments on commit b7bd3f2

Please sign in to comment.