
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
crdtoapi is a tool that creates an OpenAPI definitions file from kubernetes CustomResourceDefinitions.
Use kubernetes CRD definitions to create OpenAPI schema file.
npm install -g crdtoapi
# add npm bin path to your PATH, or use full
# excutable path, e.g. $(npm bin)/crdtoapi
crdtoapi --help
crdtoapi -i ./examples/forklift/ -o openapi.yaml
# create an OpenAPI file
crdtoapi -i ./examples/forklift/ \
-o openapi.yaml \
-t "Forklift API" \
-d "Forklift migration toolkit API definitions." \
-l "Apache-2.0" \
--apiVersion "2.4.0" \
--contactEmail kubev2v-dev@redhat.com
# use openapi-generator-cli:
# npm i -g @openapitools/openapi-generator-cli
openapi-generator-cli generate -g typescript-fetch --skip-validate-spec -o generated -i openapi.yaml
Run this scripts to lint and publish the package.
npm install
npm run lint:fix
npm run build
npm publish
FAQs
CustomResourceDefinitions to OpensAPI
The npm package crdtoapi receives a total of 415 weekly downloads. As such, crdtoapi popularity was classified as not popular.
We found that crdtoapi demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.