
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
tastypie-jsonschema
Advanced tools
A Resource mixing that allows resources to generate json schema compliant schemas from the /schema endpoint.
var tastypie = require('tastypie');
var JSONSchema = require('tastypie-jsonschema');
var Resource = tastypie.Resource;
var Hapi = require('hapi')
var Api = tastypi.Api;
var api, server;
var SchemaResource = Resource.extend({
mixin:[ JSONSchema ]
, fields:{
test:{ type:'char', nullable: true }
}
});
v1 = new Api('api/v1');
v1.use('json', new SchemaResource());
server = new Hapi.Server();
server.connection({host:'localhost', labels:['api']});
server.register([v1], function(){
server.start( console.log );
});
FAQs
JSONSchema mixin for tastypie resources
We found that tastypie-jsonschema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.