
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
ngx-json-schema-viewer
Advanced tools
Key Features:
Storybook : https://master--65174c82cd070b9998efd7f6.chromatic.com/
npm install ngx-json-schema-viewer
import { NgxJsonSchemaViewerComponent, JSV_OPTIONS } from "ngx-json-schema-viewer";
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
standalone: true,
imports: [NgxJsonSchemaViewerComponent],
providers: [
{
provide: JSV_OPTIONS,
useValue: {}
}
],
template: `
<div>
<ngx-json-schema-viewer [schema]="jsonSchema"></ngx-json-schema-viewer>
</div>
`
})
export class AppComponent {
// Your JSON Schema here
jsonSchema = {
"type": "array",
"items": [
{
"type": "integer"
},
{
"type": "string"
}
],
"additionalItems": false
};
}
Parameter | Type | Mandatory | Description |
---|---|---|---|
schema | JSON Schema | Yes | The JSON schema object to be displayed |
resolverOptions | IResolveOpts | No | Additional options for schema resolution. It accepts an object of type IResolveOpts . If not provided, the component will use default options. |
Note: For more information on IResolveOpts
, refer to the GitHub page of @stoplight/json-ref-resolver.
Field Name | Description | Type | Default Value |
---|---|---|---|
showExamples | Controls whether to display "examples." | boolean | false |
qualifierMessagesOrder | Defines the order of qualifier messages. | CheckKey[] | Default order: ["nullable", "deprecated", "readOnly", "writeOnly", "enum", "stringLength", "objectProperties", "no-extra-properties", "arrayItems", "arrayContains", "no-extra-items", "number-range", "pattern", "multipleOf", "uniqueItems", "contentEncoding", "contentMediaType", "contentSchema", "default", "const", "examples"] |
Special thanks to docusaurus-json-schema-plugin, which this project ported it to the Angular world.
FAQs
ngx-json-schema-viewer
The npm package ngx-json-schema-viewer receives a total of 11 weekly downloads. As such, ngx-json-schema-viewer popularity was classified as not popular.
We found that ngx-json-schema-viewer 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.