Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@autorest/openapi-to-typespec
Advanced tools
Autorest plugin to scaffold a Typespec definition from an OpenAPI document
Autorest extension to scaffold a new TypeSpec definition from an existing OpenApi document.
To run it
autorest --openapi-to-typespec --input-file=<path-to-swagger> --namespace=<namespace> --title="<ProjectName>" --use=@autorest/openapi-to-typespec@next --output-folder=.
or with a README config file
autorest --openapi-to-typespec --require=<path-to-readme-config>.md --use=@autorest/openapi-to-typespec@next --output-folder=.
This plugin will generate the following files
main.tsp - Entry point of the TypeSpec project, it contains service information models.tsp - Contains all the model definitions routes.tsp - Contains all the resource endpoints tsproject.yaml - Contains configuration for the TypeSpec compiler package.json - Configuration of the TypeSpec project
version: 3.10.1
use-extension:
"@autorest/modelerfour": "^4.27.0"
modelerfour:
# this runs a pre-namer step to clean up names
prenamer: false
openapi-to-typespec-scope/emitter:
input-artifact: openapi-to-typespec-files
output-artifact: openapi-to-typespec-files
pipeline:
source-swagger-detector:
input: openapi-document/multi-api/identity
openapi-to-typespec: # <- name of plugin
input:
- modelerfour/identity
- source-swagger-detector
output-artifact: openapi-to-typespec-files
openapi-to-typespec/emitter:
input: openapi-to-typespec
scope: openapi-to-typespec-scope/emitter
FAQs
Autorest plugin to scaffold a Typespec definition from an OpenAPI document
We found that @autorest/openapi-to-typespec demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.