UNPKG

api-ref-bundler

Version:

Bundle all external $ref in Json based API document into single document

8 lines (7 loc) 285 B
import { CrawlRules } from "json-crawl"; export type JsonType = "OpenApi3" | "OpenApi2" | "AsyncApi2" | "JsonSchema" | "unknown"; export type DefinitionPointer = `/${string}`; export type RefMapRule = { "#"?: DefinitionPointer; }; export type RefMapRules = CrawlRules<RefMapRule>;