UNPKG

apiconnect-explorer

Version:

- [Getting Started](#getting-started) - [Configuration](#configuration) * [Required](#required) * [Optional](#optional) - [Usage in React](#usage-in-react) - [Usage outside of React](#usage-outside-of-react) - [Detailed description of options](#detail

1 lines 361 B
import{get as a}from"lodash";import b from"./open-api-v2.ts";import c from"./open-api-v3.ts";import{AsyncApi as d}from"./async-api.ts";var e=function(a){return a.openapi?new c(a):a.swagger?new b(a):void 0},f=function(a){return new d(a)};export default function g(c){if(c){if(c.openapi||c.swagger)return e(c);if(a(c,"_json.asyncapi"))return f(c)}return new b(c)}