api-ref-bundler
Version:
Bundle all external $ref in Json based API document into single document
8 lines (7 loc) • 299 B
TypeScript
import { CrawlRules } from "json-crawl";
export type JsonType = "OpenApi3" | "OpenApi2" | "AsyncApi2" | "AsyncApi3" | "JsonSchema" | "unknown";
export type DefinitionPointer = `/${string}`;
export type RefMapRule = {
"#"?: DefinitionPointer;
};
export type RefMapRules = CrawlRules<RefMapRule>;