Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@apielements/openapi2-parser
Advanced tools
This adapter provides support for parsing Swagger 2.0 in Fury. It does not yet provide a serializer.
$ npm install @apielements/openapi2
import fury from 'fury';
import openApi2Parser from '@apielements/openapi2';
fury.use(openApi2Parser);
fury.parse({source: '... your OpenAPI 2.0 document ...'}, (err, result) => {
if (err) {
console.log(err);
return;
}
// The returned `result` is a Minim parse result element.
console.log(result.api.title);
});
The following codes are used by the parser when creating warning and error annotations.
Warnings:
Code | Description |
---|---|
2 | Source maps are unavailable due either to the input format or an issue parsing the input. |
3 | Data is being lost in the conversion. |
Errors:
Code | Description |
---|---|
1 | Error parsing input (e.g. malformed YAML). |
4 | Swagger validation error. |
5 | Swagger to Refract converter error (JS exception). |
Some Swagger Vendor extensions found in source Swagger documents are converted into the output API Element as extension elements.
The following locations of vendor extensions are supported:
These vendor extensions will be available as extensions using the relation
https://help.apiary.io/profiles/api-elements/vendor-extensions/
.
FAQs
Swagger 2.0 parser for Fury.js
The npm package @apielements/openapi2-parser receives a total of 2,329 weekly downloads. As such, @apielements/openapi2-parser popularity was classified as popular.
We found that @apielements/openapi2-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.