🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ipsdi/neris-schemas

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ipsdi/neris-schemas

JSON Schema definitions for validating NERIS (National Emergency Response Information System) data

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

NERIS JSON Schemas

JSON Schema definitions for validating data against the NERIS (National Emergency Response Information System) specification.

Installation

npm install @ipsdi/neris-schemas

Usage

Load schemas programmatically

import { getSchema, getDepartmentPayloadSchema } from "@ipsdi/neris-schemas";

// Get any schema by name
const schema = getSchema("DepartmentPayload");

// Or use convenience functions
const departmentSchema = getDepartmentPayloadSchema();

Validate with Ajv

import Ajv from "ajv";
import { getDepartmentPayloadSchema } from "@ipsdi/neris-schemas";

const ajv = new Ajv();
const validate = ajv.compile(getDepartmentPayloadSchema());

const department = {
  fd_id: "12345",
  name: "Example Fire Department",
  // ...
};

if (validate(department)) {
  console.log("Valid NERIS department data");
} else {
  console.error(validate.errors);
}

TypeScript types

import type { DepartmentPayload, StationPayload } from "@ipsdi/neris-schemas/types";

Direct schema import

import departmentSchema from "@ipsdi/neris-schemas/v1/DepartmentPayload.json";

Available Schemas

635 schemas are generated from the NERIS OpenAPI specification, including:

  • DepartmentPayload, CreateDepartmentPayload, DepartmentResponse
  • StationPayload, CreateStationPayload, StationResponse
  • IncidentPayload, CreateIncidentPayload, IncidentResponse
  • FirePayload, MedicalPayload, DispatchPayload
  • Value types: TypeDeptValue, TypeEntityValue, TypeUnitValue, etc.

Development

# Install dependencies
npm install

# Generate schemas from NERIS OpenAPI spec
npm run generate

# Generate TypeScript types
npm run generate:types

# Build package
npm run build

# Lint and typecheck
npm run lint

License

MIT

Keywords

neris

FAQs

Package last updated on 15 Jan 2026

Did you know?

Socket

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.

Install

Related posts