
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for 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
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.