Skip to content

aydk-xcc/openapi-transform

Repository files navigation

#openapi-transform

主要解决openapi 2.03.03.1 之间互相转化的问题,使用起来也非常简单:

1.安装

npm install openapi-transform

2.使用

import { openApiTransform } from 'openapi-transform';

// let data 任意版本(2.0 3.0 3.1)的openapi数据
// data 支持json和yaml
let result = openApiTransform(data, '2.0');

// 转换成3.0
// let result = openApiTransform(data, '3.0');

// 转换成3.1
// let result = openApiTransform(data, '3.1');

About

openapi-transform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published