Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@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 4,274 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.