From 53e1deb39fcb9125f9844453d354cbe21a8dc25f Mon Sep 17 00:00:00 2001 From: Axetroy Date: Thu, 22 Feb 2024 09:52:57 +0800 Subject: [PATCH] test: fix --- __test__/3.0/LDFCore.ts | 232 +++++++++++++++--------------- __test__/3.0/Petstore.ts | 22 +-- __test__/3.0/api-auth.ts | 4 +- __test__/3.0/api-upms.ts | 16 +-- __test__/3.0/api-with-examples.ts | 6 +- __test__/3.0/callback-example.ts | 2 +- __test__/3.0/link-example.ts | 2 +- __test__/3.0/petstore-expanded.ts | 6 +- __test__/3.0/uspto.ts | 4 +- __test__/3.1/webhook-example.ts | 2 +- 10 files changed, 148 insertions(+), 148 deletions(-) diff --git a/__test__/3.0/LDFCore.ts b/__test__/3.0/LDFCore.ts index f139f33..b72432d 100644 --- a/__test__/3.0/LDFCore.ts +++ b/__test__/3.0/LDFCore.ts @@ -2682,7 +2682,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record @@ -2704,565 +2704,565 @@ export interface SwaggerApi { * @summary 登录(密码模式) * @tag Account */ - post(url: '/api/Account/LoginWithPwd', options: SwaggerOptions<{}, {}, {}, LoginModel>): Promise + post(url: '/api/Account/LoginWithPwd', options?: SwaggerOptions<{}, {}, {}, LoginModel>): Promise /** * @summary 登录 * @tag Account */ - post(url: '/api/Account/Login', options: SwaggerOptions<{}, {}, {}, SpaLoginModel>): Promise + post(url: '/api/Account/Login', options?: SwaggerOptions<{}, {}, {}, SpaLoginModel>): Promise /** * @summary 退出登录 * @tag Account */ - get(url: '/api/Account/Logout', options: SwaggerOptions<{}, {logoutId?: string | null}, {}, unknown>): Promise + get(url: '/api/Account/Logout', options?: SwaggerOptions<{}, {logoutId?: string | null}, {}, unknown>): Promise /** * @summary Ids登录错误信息 * @tag Account */ - get(url: '/api/Account/Error', options: SwaggerOptions<{}, {errorId?: string | null}, {}, unknown>): Promise + get(url: '/api/Account/Error', options?: SwaggerOptions<{}, {errorId?: string | null}, {}, unknown>): Promise /** * @summary 获取初始化数据 * @tag App */ - get(url: '/api/App/Init', options: SwaggerOptions<{}, {client?: ClientEnums}, {}, unknown>): Promise + get(url: '/api/App/Init', options?: SwaggerOptions<{}, {client?: ClientEnums}, {}, unknown>): Promise /** * @summary 获取最新版本信息 * @tag AppVersion */ - get(url: '/api/AppVersion/GetVersion', options: SwaggerOptions<{}, {type?: number}, {}, unknown>): Promise + get(url: '/api/AppVersion/GetVersion', options?: SwaggerOptions<{}, {type?: number}, {}, unknown>): Promise /** * @summary 增加版本信息 * @tag AppVersion */ - post(url: '/api/AppVersion/Add', options: SwaggerOptions<{}, {}, {}, AppVersionDto>): Promise + post(url: '/api/AppVersion/Add', options?: SwaggerOptions<{}, {}, {}, AppVersionDto>): Promise /** * @summary 获取版本记录 * @tag AppVersion */ - get(url: '/api/AppVersion/GetVersionRecords', options: SwaggerOptions<{}, {Type?: number, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/AppVersion/GetVersionRecords', options?: SwaggerOptions<{}, {Type?: number, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 分页查询 * @tag Area */ - get(url: '/api/Area/Page', options: SwaggerOptions<{}, {Level?: number | null, ParentCode?: string | null, ParentId?: string | null, Code?: string | null, Name?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Area/Page', options?: SwaggerOptions<{}, {Level?: number | null, ParentCode?: string | null, ParentId?: string | null, Code?: string | null, Name?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 添加区域 * @tag Area */ - post(url: '/api/Area/Add', options: SwaggerOptions<{}, {}, {}, AreaDto>): Promise + post(url: '/api/Area/Add', options?: SwaggerOptions<{}, {}, {}, AreaDto>): Promise /** * @summary 编辑区域 * @tag Area */ - post(url: '/api/Area/Edit', options: SwaggerOptions<{}, {}, {}, AreaDto>): Promise + post(url: '/api/Area/Edit', options?: SwaggerOptions<{}, {}, {}, AreaDto>): Promise /** * @summary 删除区域 * @tag Area */ - post(url: '/api/Area/Remove', options: SwaggerOptions<{}, {}, {}, RemoveModel>): Promise + post(url: '/api/Area/Remove', options?: SwaggerOptions<{}, {}, {}, RemoveModel>): Promise /** * @summary 级联下拉选项 * @tag Area */ - get(url: '/api/Area/TreeOptions', options: SwaggerOptions<{}, {Level?: number | null, LevelFull?: number | null, ParentCode?: string | null, AreaCode?: string | null, AreaCodeFull?: string | null}, {}, unknown>): Promise + get(url: '/api/Area/TreeOptions', options?: SwaggerOptions<{}, {Level?: number | null, LevelFull?: number | null, ParentCode?: string | null, AreaCode?: string | null, AreaCodeFull?: string | null}, {}, unknown>): Promise /** * @summary 特定级别的下拉选项 * @tag Area */ - get(url: '/api/Area/OptionsBySpecificLevel', options: SwaggerOptions<{}, {Level?: number | null, LevelFull?: number | null, ParentCode?: string | null, AreaCode?: string | null, AreaCodeFull?: string | null}, {}, unknown>): Promise + get(url: '/api/Area/OptionsBySpecificLevel', options?: SwaggerOptions<{}, {Level?: number | null, LevelFull?: number | null, ParentCode?: string | null, AreaCode?: string | null, AreaCodeFull?: string | null}, {}, unknown>): Promise /** * @summary 格式化区域数据 * @tag Area */ - post(url: '/api/Area/DataFormat', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + post(url: '/api/Area/DataFormat', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 列表查询 * @tag Audit */ - get(url: '/api/Audit/Page', options: SwaggerOptions<{}, {FilterNoUserLog?: boolean, Route?: string | null, RouteSummary?: string | null, Url?: string | null, Method?: string | null, StatusCode?: number | null, RemoteIP?: string | null, UserId?: string | null, UserName?: string | null, CreationTimeStart?: string | null, CreationTimeEnd?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Audit/Page', options?: SwaggerOptions<{}, {FilterNoUserLog?: boolean, Route?: string | null, RouteSummary?: string | null, Url?: string | null, Method?: string | null, StatusCode?: number | null, RemoteIP?: string | null, UserId?: string | null, UserName?: string | null, CreationTimeStart?: string | null, CreationTimeEnd?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 新增 * @tag Dictionary */ - post(url: '/api/Dictionary/Add', options: SwaggerOptions<{}, {}, {}, DictionaryDto>): Promise + post(url: '/api/Dictionary/Add', options?: SwaggerOptions<{}, {}, {}, DictionaryDto>): Promise /** * @summary 详情 * @tag Dictionary */ - get(url: '/api/Dictionary/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/Dictionary/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 修改 * @tag Dictionary */ - post(url: '/api/Dictionary/Edit', options: SwaggerOptions<{}, {}, {}, DictionaryDto>): Promise + post(url: '/api/Dictionary/Edit', options?: SwaggerOptions<{}, {}, {}, DictionaryDto>): Promise /** * @summary 分页查询 * @tag Dictionary */ - get(url: '/api/Dictionary/Page', options: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Dictionary/Page', options?: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 移除 * @tag Dictionary */ - post(url: '/api/Dictionary/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/Dictionary/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 根据类型树形获取 * @tag Dictionary */ - get(url: '/api/Dictionary/ListByType', options: SwaggerOptions<{}, {typeId?: string | null}, {}, unknown>): Promise + get(url: '/api/Dictionary/ListByType', options?: SwaggerOptions<{}, {typeId?: string | null}, {}, unknown>): Promise /** * @summary 根据数据字典类型code获取对应下拉选项 * @tag Dictionary */ - get(url: '/api/Dictionary/OptionsByCode', options: SwaggerOptions<{}, {code?: string | null, isLoadAll?: boolean}, {}, unknown>): Promise + get(url: '/api/Dictionary/OptionsByCode', options?: SwaggerOptions<{}, {code?: string | null, isLoadAll?: boolean}, {}, unknown>): Promise /** * @summary 根据数据字典类型code获取对应下拉选项(多个) * @tag Dictionary */ - get(url: '/api/Dictionary/OptionsListByCodes', options: SwaggerOptions<{}, {codes?: string | null, isLoadAll?: boolean}, {}, unknown>): Promise + get(url: '/api/Dictionary/OptionsListByCodes', options?: SwaggerOptions<{}, {codes?: string | null, isLoadAll?: boolean}, {}, unknown>): Promise /** * @summary 根据类型树形获取(树形) * @tag Dictionary */ - get(url: '/api/Dictionary/TreeOptionsByCode', options: SwaggerOptions<{}, {code?: string | null, isLoadAll?: boolean}, {}, unknown>): Promise + get(url: '/api/Dictionary/TreeOptionsByCode', options?: SwaggerOptions<{}, {code?: string | null, isLoadAll?: boolean}, {}, unknown>): Promise /** * @summary 新增 * @tag DictionaryType */ - post(url: '/api/DictionaryType/Add', options: SwaggerOptions<{}, {}, {}, DictionaryTypeDto>): Promise + post(url: '/api/DictionaryType/Add', options?: SwaggerOptions<{}, {}, {}, DictionaryTypeDto>): Promise /** * @summary 详情 * @tag DictionaryType */ - get(url: '/api/DictionaryType/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/DictionaryType/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 修改 * @tag DictionaryType */ - post(url: '/api/DictionaryType/Edit', options: SwaggerOptions<{}, {}, {}, DictionaryTypeDto>): Promise + post(url: '/api/DictionaryType/Edit', options?: SwaggerOptions<{}, {}, {}, DictionaryTypeDto>): Promise /** * @summary 分页查询 * @tag DictionaryType */ - get(url: '/api/DictionaryType/Page', options: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/DictionaryType/Page', options?: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 移除 * @tag DictionaryType */ - post(url: '/api/DictionaryType/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/DictionaryType/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 下拉选择 * @tag DictionaryType */ - get(url: '/api/DictionaryType/Options', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/DictionaryType/Options', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 分页列表 * @tag Enterprise */ - get(url: '/api/Enterprise/Page', options: SwaggerOptions<{}, {Id?: string | null, Code?: string | null, Level?: number | null, Name?: string | null, Path?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Enterprise/Page', options?: SwaggerOptions<{}, {Id?: string | null, Code?: string | null, Level?: number | null, Name?: string | null, Path?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 详情 * @tag Enterprise */ - get(url: '/api/Enterprise/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/Enterprise/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 添加 * @tag Enterprise */ - post(url: '/api/Enterprise/Add', options: SwaggerOptions<{}, {}, {}, EnterpriseInput>): Promise + post(url: '/api/Enterprise/Add', options?: SwaggerOptions<{}, {}, {}, EnterpriseInput>): Promise /** * @summary 编辑 * @tag Enterprise */ - post(url: '/api/Enterprise/Edit', options: SwaggerOptions<{}, {}, {}, EnterpriseInput>): Promise + post(url: '/api/Enterprise/Edit', options?: SwaggerOptions<{}, {}, {}, EnterpriseInput>): Promise /** * @summary 删除 * @tag Enterprise */ - post(url: '/api/Enterprise/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/Enterprise/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 级联下拉选项 * @tag Enterprise */ - get(url: '/api/Enterprise/TreeOptions', options: SwaggerOptions<{}, {Path?: string | null}, {}, unknown>): Promise + get(url: '/api/Enterprise/TreeOptions', options?: SwaggerOptions<{}, {Path?: string | null}, {}, unknown>): Promise /** * @summary 获取所有树形帮助分类 * @tag FaqCategory */ - get(url: '/api/FaqCategory/Tree', options: SwaggerOptions<{}, {ParentId?: string | null, Name?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/FaqCategory/Tree', options?: SwaggerOptions<{}, {ParentId?: string | null, Name?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 获取所有树形帮助分类并附带内容 * @tag FaqCategory */ - get(url: '/api/FaqCategory/TreeAdnContnet', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/FaqCategory/TreeAdnContnet', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 详情 * @tag FaqCategory */ - get(url: '/api/FaqCategory/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/FaqCategory/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 添加 * @tag FaqCategory */ - post(url: '/api/FaqCategory/Add', options: SwaggerOptions<{}, {}, {}, FaqCategoryInput>): Promise + post(url: '/api/FaqCategory/Add', options?: SwaggerOptions<{}, {}, {}, FaqCategoryInput>): Promise /** * @summary 编辑 * @tag FaqCategory */ - post(url: '/api/FaqCategory/Edit', options: SwaggerOptions<{}, {}, {}, FaqCategoryInput>): Promise + post(url: '/api/FaqCategory/Edit', options?: SwaggerOptions<{}, {}, {}, FaqCategoryInput>): Promise /** * @summary 删除 * @tag FaqCategory */ - post(url: '/api/FaqCategory/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/FaqCategory/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 分页列表 * @tag FaqContent */ - get(url: '/api/FaqContent/Page', options: SwaggerOptions<{}, {CategoryId?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/FaqContent/Page', options?: SwaggerOptions<{}, {CategoryId?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 详情 * @tag FaqContent */ - get(url: '/api/FaqContent/Detail', options: SwaggerOptions<{}, {id?: string | null, isView?: boolean}, {}, unknown>): Promise + get(url: '/api/FaqContent/Detail', options?: SwaggerOptions<{}, {id?: string | null, isView?: boolean}, {}, unknown>): Promise /** * @summary 添加 * @tag FaqContent */ - post(url: '/api/FaqContent/Add', options: SwaggerOptions<{}, {}, {}, FaqContentInput>): Promise + post(url: '/api/FaqContent/Add', options?: SwaggerOptions<{}, {}, {}, FaqContentInput>): Promise /** * @summary 编辑 * @tag FaqContent */ - post(url: '/api/FaqContent/Edit', options: SwaggerOptions<{}, {}, {}, FaqContentInput>): Promise + post(url: '/api/FaqContent/Edit', options?: SwaggerOptions<{}, {}, {}, FaqContentInput>): Promise /** * @summary 删除 * @tag FaqContent */ - post(url: '/api/FaqContent/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/FaqContent/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 文件上传 * @tag File */ - post(url: '/api/File/Upload', options: SwaggerOptions<{}, {}, {}, FormData>): Promise + post(url: '/api/File/Upload', options?: SwaggerOptions<{}, {}, {}, FormData>): Promise /** * @summary 图片上传 * @tag File */ - post(url: '/api/File/UploadPic', options: SwaggerOptions<{}, {}, {}, FormData>): Promise + post(url: '/api/File/UploadPic', options?: SwaggerOptions<{}, {}, {}, FormData>): Promise /** * @summary 获取文件(返回byte[]) * @tag File */ - get(url: '/api/File/Get', options: SwaggerOptions<{}, {code?: string | null}, {}, unknown>): Promise + get(url: '/api/File/Get', options?: SwaggerOptions<{}, {code?: string | null}, {}, unknown>): Promise /** * @summary 下载文件(返回Stream) * @tag File */ - get(url: '/api/File/Download', options: SwaggerOptions<{}, {code?: string | null}, {}, unknown>): Promise - get(url: '/api/File/DownloadByStream', options: SwaggerOptions<{}, {code?: string | null}, {}, unknown>): Promise + get(url: '/api/File/Download', options?: SwaggerOptions<{}, {code?: string | null}, {}, unknown>): Promise + get(url: '/api/File/DownloadByStream', options?: SwaggerOptions<{}, {code?: string | null}, {}, unknown>): Promise /** * @summary 删除文件 * @tag File */ - post(url: '/api/File/Remove', options: SwaggerOptions<{}, {}, {}, FormData>): Promise + post(url: '/api/File/Remove', options?: SwaggerOptions<{}, {}, {}, FormData>): Promise /** * @summary 列表 * @tag LoginLog */ - get(url: '/api/LoginLog/Page', options: SwaggerOptions<{}, {UserName?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/LoginLog/Page', options?: SwaggerOptions<{}, {UserName?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 新增 * @tag Menu */ - post(url: '/api/Menu/Add', options: SwaggerOptions<{}, {}, {}, MenuInput>): Promise + post(url: '/api/Menu/Add', options?: SwaggerOptions<{}, {}, {}, MenuInput>): Promise /** * @summary 修改 * @tag Menu */ - post(url: '/api/Menu/Edit', options: SwaggerOptions<{}, {}, {}, MenuInput>): Promise + post(url: '/api/Menu/Edit', options?: SwaggerOptions<{}, {}, {}, MenuInput>): Promise /** * @summary 详情 * @tag Menu */ - get(url: '/api/Menu/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/Menu/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 分页 * @tag Menu */ - get(url: '/api/Menu/Page', options: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Menu/Page', options?: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 获取所有树形菜单 * @tag Menu */ - get(url: '/api/Menu/Tree', options: SwaggerOptions<{}, {client?: ClientEnums}, {}, unknown>): Promise + get(url: '/api/Menu/Tree', options?: SwaggerOptions<{}, {client?: ClientEnums}, {}, unknown>): Promise /** * @summary 获取角色树形菜单 * @tag Menu */ - get(url: '/api/Menu/LoadTreeByRole', options: SwaggerOptions<{}, {roleId?: string | null}, {}, unknown>): Promise + get(url: '/api/Menu/LoadTreeByRole', options?: SwaggerOptions<{}, {roleId?: string | null}, {}, unknown>): Promise /** * @summary 获取菜单按钮 * @tag Menu */ - get(url: '/api/Menu/Buttons', options: SwaggerOptions<{}, {menuId?: string | null}, {}, unknown>): Promise + get(url: '/api/Menu/Buttons', options?: SwaggerOptions<{}, {menuId?: string | null}, {}, unknown>): Promise /** * @summary 配置菜单按钮 * @tag Menu */ - post(url: '/api/Menu/SetButton', options: SwaggerOptions<{}, {}, {}, ButtonDto>): Promise + post(url: '/api/Menu/SetButton', options?: SwaggerOptions<{}, {}, {}, ButtonDto>): Promise /** * @summary 级联下拉选项 * @tag Menu */ - get(url: '/api/Menu/TreeOptions', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Menu/TreeOptions', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 删除 * @tag Menu */ - post(url: '/api/Menu/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/Menu/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 获取消息类型 * @tag Notify */ - get(url: '/api/Notify/Options', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Notify/Options', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 获取通知列表 * @tag Notify */ - get(url: '/api/Notify/Page', options: SwaggerOptions<{}, {Type?: string | null, Readed?: boolean | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Notify/Page', options?: SwaggerOptions<{}, {Type?: string | null, Readed?: boolean | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 获取通知列表(信息预览框使用) * @tag Notify */ - get(url: '/api/Notify/PageLite', options: SwaggerOptions<{}, {Type?: string | null, Readed?: boolean | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Notify/PageLite', options?: SwaggerOptions<{}, {Type?: string | null, Readed?: boolean | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 获取未读消息数量 * @tag Notify */ - get(url: '/api/Notify/UnReadedCount', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Notify/UnReadedCount', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 通知已读 * @tag Notify */ - post(url: '/api/Notify/Readed', options: SwaggerOptions<{}, {}, {}, NotifyReadedInput>): Promise + post(url: '/api/Notify/Readed', options?: SwaggerOptions<{}, {}, {}, NotifyReadedInput>): Promise /** * @summary 全部已读 * @tag Notify */ - post(url: '/api/Notify/ReadAll', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + post(url: '/api/Notify/ReadAll', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 删除消息(参数传到Ids属性,多个用,分开) * @tag Notify */ - post(url: '/api/Notify/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/Notify/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 删除所有消息 * @tag Notify */ - post(url: '/api/Notify/RemoveAll', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + post(url: '/api/Notify/RemoveAll', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 添加消息,外部调用(泛型参数报404) * @tag Notify */ - post(url: '/api/Notify/Addmsg', options: SwaggerOptions<{}, {}, {}, StringNotifyInput>): Promise + post(url: '/api/Notify/Addmsg', options?: SwaggerOptions<{}, {}, {}, StringNotifyInput>): Promise /** * @summary 同步本系统API信息到数据库 * @tag OpenApi */ - post(url: '/api/OpenApi/SyncCurrent', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + post(url: '/api/OpenApi/SyncCurrent', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 同步所有系统API信息(未实现) * @tag OpenApi */ - post(url: '/api/OpenApi/SyncAll', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + post(url: '/api/OpenApi/SyncAll', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 同步API信息到数据库 * @tag OpenApi */ - post(url: '/api/OpenApi/AddOrUpdate', options: SwaggerOptions<{}, {data?: string | null}, {}, unknown>): Promise + post(url: '/api/OpenApi/AddOrUpdate', options?: SwaggerOptions<{}, {data?: string | null}, {}, unknown>): Promise /** * @summary 树形下拉选项 * @tag OpenApi */ - get(url: '/api/OpenApi/TreeOptions', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/OpenApi/TreeOptions', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 分页列表 * @tag Organizations */ - get(url: '/api/Organizations/Page', options: SwaggerOptions<{}, {EnterpriseId?: string | null, Name?: string | null, Path?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Organizations/Page', options?: SwaggerOptions<{}, {EnterpriseId?: string | null, Name?: string | null, Path?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 详情 * @tag Organizations */ - get(url: '/api/Organizations/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/Organizations/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 添加 * @tag Organizations */ - post(url: '/api/Organizations/Add', options: SwaggerOptions<{}, {}, {}, OrganizationsInput>): Promise + post(url: '/api/Organizations/Add', options?: SwaggerOptions<{}, {}, {}, OrganizationsInput>): Promise /** * @summary 编辑 * @tag Organizations */ - post(url: '/api/Organizations/Edit', options: SwaggerOptions<{}, {}, {}, OrganizationsInput>): Promise + post(url: '/api/Organizations/Edit', options?: SwaggerOptions<{}, {}, {}, OrganizationsInput>): Promise /** * @summary 删除 * @tag Organizations */ - post(url: '/api/Organizations/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/Organizations/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 级联下拉选项 * @tag Organizations */ - get(url: '/api/Organizations/TreeOptions', options: SwaggerOptions<{}, {}, {}, OrganizationTreeOptionsQuery>): Promise + get(url: '/api/Organizations/TreeOptions', options?: SwaggerOptions<{}, {}, {}, OrganizationTreeOptionsQuery>): Promise /** * @summary 分页查询 * @tag Roles */ - get(url: '/api/Roles/Page', options: SwaggerOptions<{}, {RoleName?: string | null, Code?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Roles/Page', options?: SwaggerOptions<{}, {RoleName?: string | null, Code?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 获取单个信息 * @tag Roles */ - get(url: '/api/Roles/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/Roles/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 新增 * @tag Roles */ - post(url: '/api/Roles/Add', options: SwaggerOptions<{}, {}, {}, RolesDto>): Promise + post(url: '/api/Roles/Add', options?: SwaggerOptions<{}, {}, {}, RolesDto>): Promise /** * @summary 修改 * @tag Roles */ - post(url: '/api/Roles/Edit', options: SwaggerOptions<{}, {}, {}, RolesDto>): Promise + post(url: '/api/Roles/Edit', options?: SwaggerOptions<{}, {}, {}, RolesDto>): Promise /** * @summary 移除 * @tag Roles */ - post(url: '/api/Roles/Remove', options: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise + post(url: '/api/Roles/Remove', options?: SwaggerOptions<{}, {}, {}, StringRemoveModel>): Promise /** * @summary 下拉选择 * @tag Roles */ - get(url: '/api/Roles/Options', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Roles/Options', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 设置菜单按钮 * @tag Roles */ - post(url: '/api/Roles/SetMenus', options: SwaggerOptions<{}, {}, {}, SetMenusDto>): Promise + post(url: '/api/Roles/SetMenus', options?: SwaggerOptions<{}, {}, {}, SetMenusDto>): Promise /** * @summary 获取菜单按钮 * @tag Roles */ - get(url: '/api/Roles/GetMenus', options: SwaggerOptions<{}, {roleId?: string | null}, {}, unknown>): Promise + get(url: '/api/Roles/GetMenus', options?: SwaggerOptions<{}, {roleId?: string | null}, {}, unknown>): Promise /** * @summary 测试 * @tag Sample */ - get(url: '/api/Sample/Test', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Sample/Test', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 输出日志 * @tag Sample */ - get(url: '/api/Sample/LogInfo', options: SwaggerOptions<{}, {}, {}, unknown>): Promise - get(url: '/api/Sample/ResolveApis', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Sample/LogInfo', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Sample/ResolveApis', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 更新 * @tag Sample */ - post(url: '/api/Sample/Update', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + post(url: '/api/Sample/Update', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary Page New * @tag Sample */ - get(url: '/api/Sample/PageNew', options: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Sample/PageNew', options?: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary Page * @tag Sample */ - get(url: '/api/Sample/Page', options: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise - get(url: '/api/Sample/TestGlobalExceptionFilter', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Sample/Page', options?: SwaggerOptions<{}, {Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/Sample/TestGlobalExceptionFilter', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 获取登录信息 * @tag Sample */ - get(url: '/api/Sample/LoginInfo', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Sample/LoginInfo', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 缓存测试 * @tag Test */ - get(url: '/api/Test/TestCache', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Test/TestCache', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 随便测试 * @tag Test */ - get(url: '/api/Test/Test2', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Test/Test2', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary Aes测试 * @tag Test */ - get(url: '/api/Test/TestAes', options: SwaggerOptions<{}, {text?: string | null}, {}, unknown>): Promise + get(url: '/api/Test/TestAes', options?: SwaggerOptions<{}, {text?: string | null}, {}, unknown>): Promise /** * @summary 时间返回格式测试 * @tag Test */ - get(url: '/api/Test/TestDateTime', options: SwaggerOptions<{}, {time?: string}, {}, unknown>): Promise + get(url: '/api/Test/TestDateTime', options?: SwaggerOptions<{}, {time?: string}, {}, unknown>): Promise /** * @summary 测试获取用户EID * @tag Test */ - get(url: '/api/Test/GetLoginEid', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Test/GetLoginEid', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 测试异常抛出 * @tag Test */ - get(url: '/api/Test/ThrowEx', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Test/ThrowEx', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary OpenApiPolicy * @tag Test */ - get(url: '/api/Test/OpenApiPolicy', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Test/OpenApiPolicy', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary 列表 * @tag UserInfo */ - get(url: '/api/UserInfo/Page', options: SwaggerOptions<{}, {UserName?: string | null, RealName?: string | null, PhoneNumber?: string | null, EnterpriseId?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise + get(url: '/api/UserInfo/Page', options?: SwaggerOptions<{}, {UserName?: string | null, RealName?: string | null, PhoneNumber?: string | null, EnterpriseId?: string | null, Keyword?: string | null, Page?: number, PageSize?: number, TotalCount?: number, Order?: string | null}, {}, unknown>): Promise /** * @summary 获取单个信息 * @tag UserInfo */ - get(url: '/api/UserInfo/Detail', options: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise + get(url: '/api/UserInfo/Detail', options?: SwaggerOptions<{}, {id?: string | null}, {}, unknown>): Promise /** * @summary 添加 * @tag UserInfo */ - post(url: '/api/UserInfo/Add', options: SwaggerOptions<{}, {}, {}, UserInfoInput>): Promise + post(url: '/api/UserInfo/Add', options?: SwaggerOptions<{}, {}, {}, UserInfoInput>): Promise /** * @summary 编辑 * @tag UserInfo */ - post(url: '/api/UserInfo/Edit', options: SwaggerOptions<{}, {}, {}, UserInfoInput>): Promise + post(url: '/api/UserInfo/Edit', options?: SwaggerOptions<{}, {}, {}, UserInfoInput>): Promise /** * @summary 修改密码 * @tag UserInfo */ - post(url: '/api/UserInfo/UpdatePwd', options: SwaggerOptions<{}, {}, {}, UsersPwdDto>): Promise + post(url: '/api/UserInfo/UpdatePwd', options?: SwaggerOptions<{}, {}, {}, UsersPwdDto>): Promise /** * @summary 重置密码 * @tag UserInfo */ - post(url: '/api/UserInfo/ResetPwd', options: SwaggerOptions<{}, {}, {}, ResetPwdDto>): Promise + post(url: '/api/UserInfo/ResetPwd', options?: SwaggerOptions<{}, {}, {}, ResetPwdDto>): Promise /** * @summary 基本信息修改 * @tag UserInfo */ - post(url: '/api/UserInfo/UpdateUserBasicInfo', options: SwaggerOptions<{}, {}, {}, UpdateUserBasicInfoInput>): Promise + post(url: '/api/UserInfo/UpdateUserBasicInfo', options?: SwaggerOptions<{}, {}, {}, UpdateUserBasicInfoInput>): Promise /** * @summary Socket预连接 * @tag Websocket */ - get(url: '/api/Websocket/PreConnect', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/api/Websocket/PreConnect', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise } diff --git a/__test__/3.0/Petstore.ts b/__test__/3.0/Petstore.ts index 466738f..412f50e 100644 --- a/__test__/3.0/Petstore.ts +++ b/__test__/3.0/Petstore.ts @@ -104,7 +104,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record @@ -127,25 +127,25 @@ export interface SwaggerApi { * @summary Add a new pet to the store * @tag pet */ - post(url: '/pet', options: SwaggerOptions<{}, {}, {}, Pet>): Promise + post(url: '/pet', options?: SwaggerOptions<{}, {}, {}, Pet>): Promise /** * @description Update an existing pet by Id * @summary Update an existing pet * @tag pet */ - put(url: '/pet', options: SwaggerOptions<{}, {}, {}, Pet>): Promise + put(url: '/pet', options?: SwaggerOptions<{}, {}, {}, Pet>): Promise /** * @description Multiple status values can be provided with comma separated strings * @summary Finds Pets by status * @tag pet */ - get(url: '/pet/findByStatus', options: SwaggerOptions<{}, {status?: 'available' | 'pending' | 'sold'}, {}, unknown>): Promise> + get(url: '/pet/findByStatus', options?: SwaggerOptions<{}, {status?: 'available' | 'pending' | 'sold'}, {}, unknown>): Promise> /** * @description Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @summary Finds Pets by tags * @tag pet */ - get(url: '/pet/findByTags', options: SwaggerOptions<{}, {tags?: Array}, {}, unknown>): Promise> + get(url: '/pet/findByTags', options?: SwaggerOptions<{}, {tags?: Array}, {}, unknown>): Promise> /** * @description Returns a single pet * @summary Find pet by ID @@ -172,7 +172,7 @@ export interface SwaggerApi { * @summary Returns pet inventories by status * @tag store */ - get(url: '/store/inventory', options: SwaggerOptions<{}, {}, {}, unknown>): Promise<{ + get(url: '/store/inventory', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise<{ [key: string]: number } > @@ -181,7 +181,7 @@ export interface SwaggerApi { * @summary Place an order for a pet * @tag store */ - post(url: '/store/order', options: SwaggerOptions<{}, {}, {}, Order>): Promise + post(url: '/store/order', options?: SwaggerOptions<{}, {}, {}, Order>): Promise /** * @description For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions * @summary Find purchase order by ID @@ -199,23 +199,23 @@ export interface SwaggerApi { * @summary Create user * @tag user */ - post(url: '/user', options: SwaggerOptions<{}, {}, {}, User>): Promise + post(url: '/user', options?: SwaggerOptions<{}, {}, {}, User>): Promise /** * @description Creates list of users with given input array * @summary Creates list of users with given input array * @tag user */ - post(url: '/user/createWithList', options: SwaggerOptions<{}, {}, {}, Array>): Promise + post(url: '/user/createWithList', options?: SwaggerOptions<{}, {}, {}, Array>): Promise /** * @summary Logs user into the system * @tag user */ - get(url: '/user/login', options: SwaggerOptions<{}, {username?: string, password?: string}, {}, unknown>): Promise + get(url: '/user/login', options?: SwaggerOptions<{}, {username?: string, password?: string}, {}, unknown>): Promise /** * @summary Logs out current logged in user session * @tag user */ - get(url: '/user/logout', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/user/logout', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary Get user by user name * @tag user diff --git a/__test__/3.0/api-auth.ts b/__test__/3.0/api-auth.ts index c364c59..193c095 100644 --- a/__test__/3.0/api-auth.ts +++ b/__test__/3.0/api-auth.ts @@ -62,7 +62,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record @@ -84,7 +84,7 @@ export interface SwaggerApi { * @summary 文件上传测试 * @tag auth-server-endpoint */ - post(url: '/other', options: SwaggerOptions<{}, {name?: string}, {}, Blob | Uint8Array>): Promise + post(url: '/other', options?: SwaggerOptions<{}, {name?: string}, {}, Blob | Uint8Array>): Promise /** * @description oauth2.0 应用接入信息查询 * @summary 查询 diff --git a/__test__/3.0/api-upms.ts b/__test__/3.0/api-upms.ts index 099e1c3..0b6de65 100644 --- a/__test__/3.0/api-upms.ts +++ b/__test__/3.0/api-upms.ts @@ -218,7 +218,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record @@ -240,22 +240,22 @@ export interface SwaggerApi { * @summary 按钮 * @tag 公共接口 */ - get(url: '/button', options: SwaggerOptions<{}, {}, {}, unknown>): Promise> + get(url: '/button', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise> /** * @summary 导航条 * @tag 公共接口 */ - get(url: '/navbar', options: SwaggerOptions<{}, {}, {}, unknown>): Promise> + get(url: '/navbar', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise> /** * @summary 查询 * @tag 角色管理 */ - get(url: '/role', options: SwaggerOptions<{}, {}, {}, unknown>): Promise> + get(url: '/role', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise> /** * @summary 新增 * @tag 角色管理 */ - post(url: '/role', options: SwaggerOptions<{}, {}, {}, RoleDTO>): Promise + post(url: '/role', options?: SwaggerOptions<{}, {}, {}, RoleDTO>): Promise /** * @description 角色删除是一个危险的操作,不提供批量服务 * @summary 删除 @@ -295,18 +295,18 @@ export interface SwaggerApi { * @summary 查询 * @tag 菜单管理 */ - get(url: '/sitemap', options: SwaggerOptions<{}, {}, {}, unknown>): Promise> + get(url: '/sitemap', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise> /** * @description 添加菜单 * @summary 新增 * @tag 菜单管理 */ - post(url: '/sitemap', options: SwaggerOptions<{}, {}, {}, SitemapDTO>): Promise + post(url: '/sitemap', options?: SwaggerOptions<{}, {}, {}, SitemapDTO>): Promise /** * @summary 添加按钮 * @tag 菜单管理 */ - post(url: '/sitemap/button', options: SwaggerOptions<{}, {}, {}, ButtonDTO>): Promise + post(url: '/sitemap/button', options?: SwaggerOptions<{}, {}, {}, ButtonDTO>): Promise /** * @summary 修改按钮 * @tag 菜单管理 diff --git a/__test__/3.0/api-with-examples.ts b/__test__/3.0/api-with-examples.ts index 390462d..202ed00 100644 --- a/__test__/3.0/api-with-examples.ts +++ b/__test__/3.0/api-with-examples.ts @@ -4,7 +4,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record @@ -25,11 +25,11 @@ export interface SwaggerApi { /** * @summary List API versions */ - get(url: '/', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @summary Show API version details */ - get(url: '/v2', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/v2', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise } diff --git a/__test__/3.0/callback-example.ts b/__test__/3.0/callback-example.ts index 5a710be..47b31e2 100644 --- a/__test__/3.0/callback-example.ts +++ b/__test__/3.0/callback-example.ts @@ -4,7 +4,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record diff --git a/__test__/3.0/link-example.ts b/__test__/3.0/link-example.ts index a108c86..7e544ba 100644 --- a/__test__/3.0/link-example.ts +++ b/__test__/3.0/link-example.ts @@ -23,7 +23,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record diff --git a/__test__/3.0/petstore-expanded.ts b/__test__/3.0/petstore-expanded.ts index fa39de8..018e7f2 100644 --- a/__test__/3.0/petstore-expanded.ts +++ b/__test__/3.0/petstore-expanded.ts @@ -21,7 +21,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record @@ -44,11 +44,11 @@ export interface SwaggerApi { * Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia. * Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien. */ - get(url: '/pets', options: SwaggerOptions<{}, {tags?: Array, limit?: number}, {}, unknown>): Promise> + get(url: '/pets', options?: SwaggerOptions<{}, {tags?: Array, limit?: number}, {}, unknown>): Promise> /** * @description Creates a new pet in the store. Duplicates are allowed */ - post(url: '/pets', options: SwaggerOptions<{}, {}, {}, NewPet>): Promise + post(url: '/pets', options?: SwaggerOptions<{}, {}, {}, NewPet>): Promise /** * @description Returns a user based on a single ID, if the user does not have access to the pet */ diff --git a/__test__/3.0/uspto.ts b/__test__/3.0/uspto.ts index e3c8caf..f2563e5 100644 --- a/__test__/3.0/uspto.ts +++ b/__test__/3.0/uspto.ts @@ -30,7 +30,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record @@ -52,7 +52,7 @@ export interface SwaggerApi { * @summary List available data sets * @tag metadata */ - get(url: '/', options: SwaggerOptions<{}, {}, {}, unknown>): Promise + get(url: '/', options?: SwaggerOptions<{}, {}, {}, unknown>): Promise /** * @description This GET API returns the list of all the searchable field names that are in the oa_citations. Please see the 'fields' attribute which returns an array of field names. Each field or a combination of fields can be searched using the syntax options shown below. * @summary Provides the general information about the API and the list of fields that can be used to query the dataset. diff --git a/__test__/3.1/webhook-example.ts b/__test__/3.1/webhook-example.ts index 6d1706a..49a95a4 100644 --- a/__test__/3.1/webhook-example.ts +++ b/__test__/3.1/webhook-example.ts @@ -8,7 +8,7 @@ export type Stringify = string | number | null | undefined | void export type SwaggerPath = Record -export type SwaggerQuery = Record +export type SwaggerQuery = Record> export type SwaggerHeaders = Record