import { Schema } from '../schema'; import { Paths } from './path'; export interface Swagger2_Docs { swagger: string; info: string; host: string; basePath: string; tags: Swagger2_Tag[]; paths: Paths; definitions: Swagger2_Definitions; } export interface Swagger2_Tag { name: string; description: string; } export type Swagger2_Definitions = Record; export interface DefinitionsMetadata { /** 当前接口出参/入参类型 */ type: string; /** */ properties: Record; /** */ title: string; /** 必填字段集合 */ required: string[]; } /** * swagger 服务分组数据结构 * eg: domain.com/swagger-resources */ export interface Swagger2_Groups_Item { name: string; url: string; swaggerVersion: string; location: string; }