Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
openapi-generator
Advanced tools
[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down
openapi-generator from swagger 2.0 or OpenAPI 3.0:
openapi-generator url http://xxx/v2/api-docs -c true
openapi-generator config ./xxx.js
or openapi-generator config ./xxx.json
Config interface:
interface CliConfig {
api: string;
/** dir for openapi-generator */
sdkDir: string;
/** path of service template */
templatePath?: string;
/** path of interface template */
interfaceTemplatePath?: string;
/** request lib */
requestLib = true;
/** filename style, true 为大驼峰,lower 为小驼峰 */
camelCase?: boolean | 'lower' = false;
/** gen type */
type?: 'ts' | 'js' = 'ts';
/** service type */
serviceType?: 'function' | 'class' = 'function';
/** namespace of typings */
namespace?: string = 'API';
/** 自动清除旧文件时忽略列表 */
ignoreDelete: string[] = [];
}
function genAPISDK(data: RouteMetadataType[], config: GenConfig) => void
FAQs
[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down
The npm package openapi-generator receives a total of 2,762 weekly downloads. As such, openapi-generator popularity was classified as popular.
We found that openapi-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.