1.0.11 • Published 1 year ago

swagger-to-ts-schema v1.0.11

Weekly downloads
13
License
ISC
Repository
github
Last release
1 year ago

swagger-to-ts-schema

命令参数: url:swagger路径 或 配置json文件 className:api命名空间,默认为$api output:输出的文件路径 默认为 ./ fileName:输出的文件名称,默认为 api force:是否强制覆盖文件 debug:debug模式 type: 1. schema:默认,输出所有api 2. valid:只生成项目内已使用的api

schemaType = "json", // 输出的模式

生成命令
node node_modules/swagger-to-ts-schema url=./build/bin/swagger-dev.json output=./src/api force
swagger配置文件
{
    "swagger": [
        {
            "url": "http://127.0.0.1:8888/swagger-ui.html#/",
            "namespace": "test",
            "description": "test描述信息"
        },
        {
            "url": "http://127.0.0.1:9999/swagger-ui.html#/",
            "namespace": "base",
            "description": "base描述信息"
        },
    ]
}
1.0.11

1 year ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago