@impart-security/spec-linter
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

spec-linter

Lint a specification against a set of security-oriented rules.

Example usage

import { specLinter } from "@impart-security/spec-linter";

const spec = {
  openapi: "3.0.0",
  info: {
    title: "Test",
    version: "1.0.0",
  },
  paths: {
    "/test": {
      get: {
        responses: {
          "200": {
            description: "OK",
          },
        },
      },
    },
  },
};

const { results, output } = await specLinter(spec);

console.log(results);
console.log(output);

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @impart-security/spec-linter

    Weekly Downloads

    0

    Version

    0.1.0

    License

    Apache-2.0

    Unpacked Size

    7.77 kB

    Total Files

    12

    Last publish

    Collaborators

    • bjpinkerton
    • marc-impart2