angular - 为什么 ng-openapi-gen 会发出警告
问题描述
我目前参与了一个 Angular 项目,我试图整理一下。让我烦恼的一件事是这些警告
> ng-openapi-gen --input src/assets/openapi-service-earkiv.json --output src/app/container/service-earkiv/generated
(node:21984) DeprecationWarning: ArgumentParser(): following options are renamed: 'addHelp' -> 'add_help'
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:21984) DeprecationWarning: The "version" argument to ArgumentParser is deprecated. Please use add_argument(..., { action: 'version', version: 'N', ... }) instead.
(node:21984) DeprecationWarning: _ActionsContainer.addArgument() is renamed to _ActionsContainer.add_argument()
(node:21984) DeprecationWarning: add_argument(): following options are renamed: 'defaultValue' -> 'default'
(node:21984) DeprecationWarning: use add_argument('-c', '--config', {...}) instead of add_argument([ '-c', '--config' ], { ... })
(node:21984) DeprecationWarning: ArgumentParser.parseArgs() is renamed to ArgumentParser.parse_args()
Generation from src/assets/openapi-service-earkiv.json finished with 49 models and 27 services.
我们正在运行最新的 ng-openapi-gen 版本,即0.17.2
解决方案
推荐阅读
- security - 无法找到请求目标的有效认证路径。没有应用安全证书,但我收到此错误。为什么?
- spring-boot - spring-retrial 内部实现
- java - 选项列表上的 AssertJ
- sockets - 具有多线程客户端在读取时阻塞的非阻塞 SSL 套接字
- php - 在 fpdf 的单元格中插入一个 url
- python - 将与另一个 id 列表相关的值列表转换为矩阵
- php - 未调用组路由中间件
- node.js - 本机模块在 ubuntu 上为电子项目上的 node-webcrypto-ossl 编译错误
- java - spring集成分离器的事务边界
- c# - 当我尝试在映射的网络驱动器上创建目录时,它显示“找不到路径的一部分”