
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
This tools is inspired from openapi-generator, the purpose is to be able to generate Typescript typings from openapi definitions
Openapi generator is a great tool and it's working fine for simple typescript typings, which I think are the principal use case, It's used by many developers and It's maintained.
BUT, this tool is handling dozen of languages, generating client and server codes via OpenAPI, so obviously some generators are broken or have some annoying bugs (openapi-generator#6332, openapi-generator#7886, openapi-generator#4190, openapi-generator#7887). Some of this bugs are preventing us from using the tool.
I'm not really familiar with Java, and I really need something that works well with Typescript quickly. That's why I've created this package, the ambition is not to support multiple language, supporting Typescript seems fine. And generating code with ts-morph is something pretty easy.
role-create → create, which give Role.create if tag is Role)yarn global add oatyp
oatyp -s example/openapi.yaml -d example
It will use the example/openapi.yaml file to ouput generated typescript in the example/ directory.
--removeTagFromOperationId optionThe generated class is scoped by tags, it means that if you have multiple operations with the same tag they all will be available under this tag namespace (e.g. apiInstance.MyTag.myOperationId).
But having the tag name in the operation id (as operation id must be unique across tags) can be redundant, that's why you can enable the --removeTagFromOperationId option that will remove the tag name from the operation id.
FAQs
Build Typescript typings from OpenAPI definitions
We found that oatyp 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
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.