Skip to content

Commit

Permalink
feat(reference): expose new symbols to compose dereference strategies (
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n authored Dec 31, 2022
1 parent 379e795 commit a5fe0da
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/apidom-reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@
"require": "./cjs/dereference/strategies/openapi-3-1/index.cjs",
"types": "./types/dereference/strategies/openapi-3-1/index.d.ts"
},
"./dereference/strategies/openapi-3-1/selectors/$anchor": {
"import": "./es/dereference/strategies/openapi-3-1/selectors/$anchor/index.js",
"require": "./cjs/dereference/strategies/openapi-3-1/selectors/$anchor/index.cjs",
"types": "./types/dereference/strategies/openapi-3-1/selectors/$anchor/index.d.ts"
},
"./dereference/strategies/openapi-3-1/selectors/uri": {
"import": "./es/dereference/strategies/openapi-3-1/selectors/uri/index.js",
"require": "./cjs/dereference/strategies/openapi-3-1/selectors/uri/index.cjs",
"types": "./types/dereference/strategies/openapi-3-1/selectors/uri/index.d.ts"
},
"./dereference/strategies/openapi-3-1-swagger-client": {
"import": "./es/dereference/strategies/openapi-3-1-swagger-client/index.js",
"require": "./cjs/dereference/strategies/openapi-3-1-swagger-client/index.cjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ const OpenApi3_1DereferenceStrategy: stampit.Stamp<IDereferenceStrategy> = stamp
},
);

export { OpenApi3_1DereferenceVisitor };
export {
resolveSchema$refField,
maybeRefractToSchemaElement,
} from '../../../resolve/strategies/openapi-3-1/util';

export default OpenApi3_1DereferenceStrategy;
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ export const evaluate = <T extends Element>(anchor: string, element: T): Element
// @ts-ignore
return result;
};

export { EvaluationJsonSchema$anchorError, InvalidJsonSchema$anchorError };
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ export const evaluate = <T extends Element>(uri: string, element: T): Element |
// @ts-ignore
return fragmentEvaluate(selector, result);
};

export { EvaluationJsonSchemaUriError };

0 comments on commit a5fe0da

Please sign in to comment.