
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@codegena/oapi3ts-cli
Advanced tools
This is an experimental library. Now supporting TypeScript data types and model. Also, generating experimental Angular2+ services.
Supporting of other languages and frameworks might be possible in the future.
It's a part of @codegena scope.
See in action: https://codegena-playground.stackblitz.io/ / https://stackblitz.com/edit/codegena-playground.
Install (without optional dependencies):
npm i @codegena/oapi3ts-cli --no-optional
or
yarn add @codegena/oapi3ts-cli --ignore-optional
So you can use @codegena/oapi3ts-cli in NodeJS scripts. For example, lets create update-typings.js script with code:
"use strict";
var cliLib = require('@codegena/oapi3ts-cli');
var cliApp = new cliLib.CliApplication;
cliApp.createTypings();
cliApp.createServices('angular');
Then launch:
node ./update-typings.js --srcPath ./specs/todo-app-spec.json --destPath ./ --separatedFiles true
Class CliApplication will get command line arguments destPath, srcPath and separatedFiles by itself.
| CLI Argument | Description |
|---|---|
| srcPath | Path of url of JSON file with OpenAPI3 specification |
| destPath | Path for destination directory |
| separatedFiles | Whether should converted types been saved in separate files, or in single file |
Also, you can set some of options for convertor's configuration config via CLI:
| Option | Description |
|---|---|
| defaultContentType | Default content-type contains no prefixes/suffixes in type names. |
| implicitTypesRefReplacement | Mode when models that refer to any models via $ref are replacing implicitly even if firsts have names |
FAQs
CLI Application API for codegeneration from OAS3
The npm package @codegena/oapi3ts-cli receives a total of 338 weekly downloads. As such, @codegena/oapi3ts-cli popularity was classified as not popular.
We found that @codegena/oapi3ts-cli 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.