
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
json-schema-view-js
Advanced tools
A pure JavaScript component for rendering JSON Schema in HTML.
JSON Schema is very verbose and hard to read in JSON. This component helps rendering a JSON Schema in a user readable format.
Also available as an AngularJS directive
Installation
Install via bower
bower install json-schema-view-js --save
Then use global JSONSchemaView
constructor
const schema = {type: 'string', title: 'Name'};
const view = new JSONSchemaView(schema);
document.body.appendChild(view.render());
JSONSchemaView(schema [, open ])
schema
(Object
) - requiredThe JSON Schema object.
open
(Number
)Default: 1
This number indicates up to how many levels the rendered tree should expand. Set it to 0
to make the whole tree collapsed or set it to Infinity
to expand the tree deeply
Install gulp
and run gulp serve
to start the server that serves the development version of the project.
Once:
npm test
Continues:
gulp test
FAQs
JSON Schema View core library
The npm package json-schema-view-js receives a total of 192 weekly downloads. As such, json-schema-view-js popularity was classified as not popular.
We found that json-schema-view-js 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.