Comments (6)
可以展开说一下具体情况吗?基类对应的是后端 class 名字,后端把 class 名字起为了中文?
from pont.
在swagger.josn 的 definitions 里的类名有各种奇葩问题,我列举几种类的命名
"banner参数返回数据"
"查询账户余额Vo"
"提现失败 获取可重新绑定银行卡列表的请求数据"
这应该是java针对swagger 对英文类名专门做了汉化处理
from pont.
我觉得可以让你们 java 取消这个汉化,我们在 Pont 在使用上,也会和后端约定一定的规范。
from pont.
如果 Pont 去做汉字翻译成英文,然后改成 camelCase,我觉得会比较奇怪。
from pont.
工具就应该具有普适性吧,如果有历史原因,比如跨部门,再让java去改的话不太可能了。而作为工具,至少做为可选功能,应该为用户提供一个解决方案
或者提供_个插件机制也行
我目前的处理方式就是找出来,翻译再替换
from pont.
已经修复
from pont.
Related Issues (20)
- [pont.createManager]:执行失败 HOT 1
- v1.3.2 报 npm 同步错误
- 接口更新,列表接口的命名空间被详情接口替换
- 发现3个问题:vite报错不识别commonJS语法。泛型返回有问题。不生成pontCore.js HOT 1
- 不支持生成OAS3的枚举类型 HOT 1
- pont无法在vite3.0中使用 HOT 3
- pont无法使用 HOT 3
- OpenAPI 下,POST 请求,同时存在路径参数与请求体参数时,路径参数丢失 HOT 1
- tag name被翻译,导致整个模块名发生变化,导致使用时报错 HOT 1
- can not install HOT 1
- 同时启用`"usingMultipleOrigins": true`和`"spiltApiLock": true` - 新增数据源时会报文件不存在的异常 HOT 2
- pont执行失败 HOT 1
- 水平堪忧啊,一更新类型全没了 HOT 3
- vscode-pont新版transform不生效 HOT 1
- pont start后报错Error: ENOENT: no such file or directory, open 'D:\soft\nvm\v12.14.0\node_modules\pont-engine\lib\package.json' HOT 1
- SwaggerV3 规范的数据源解析错误
- translate error, all translate engine can not access HOT 4
- 获远程接口数据失败 Error: compiler error in defname HOT 3
- 多个origins时重写CodeGenerator的getInterfaceContentInDeclaration方法不生效
- 能否在 Interface 中添加 operationId 属性
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pont.