
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
snippet-enricher-cli
Advanced tools
Enrich OpenAPI 3.0 JSON with code snippets (``x-codeSamples``)
Thanks to the wonderful swagger-snippet module you can now simply enrich your OpenAPI schema with code samples. It's as easy as 1.2.3.
npm install snippet-enricher-cli
./node_modules/.bin/snippet-enricher-cli --input=your_oas.json
Enrich your OAS 3.0 Schema
./node_modules/.bin/snippet-enricher-cli --input=openapi.json > openapi-with-examples.json
Alternatively you can point it to a YAML-formatted spec:
curl https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml --output petstore.yaml
./node_modules/.bin/snippet-enricher-cli --input=petstore.yaml > openapi-with-examples.json
Use targets options to specific languages:
./node_modules/.bin/snippet-enricher-cli --targets="node_request,shell_curl" --input=openapi.json > > openapi-with-examples.json
Use ReDoc to build beautiful API doc:
redoc-cli bundle openapi-with-examples.json
enjoy.
Contributions are most welcome!
MIT
Project is currently maintained, in our spare time, by codewave.eu and a growing number of Contributors!
FAQs
Enrich OpenAPI 3.0 JSON with code snippets (``x-codeSamples``)
The npm package snippet-enricher-cli receives a total of 8,178 weekly downloads. As such, snippet-enricher-cli popularity was classified as popular.
We found that snippet-enricher-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
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.