1.0.0 • Published 3 years ago

jsy-swagger2ts v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

swagger 2 ts

怎么做

paths 生成 API

怎么解析 ?

paths.key === API URL

paths.value.key === API method

paths.value.value.summary === API 描述

paths.value.value.operationId === API 名称

paths.value.value.parameters === API 参数

paths.value.value.responses === API 响应 -- 200 --> type

definitions 是对应的类型

definitions.description === 类型描述

definitions.key === 类型名称

definitions.properties === 类型值