@egomobile/openapi-schema-validator
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

npm PRs Welcome

@egomobile/openapi-schema-validator

Additional and strict validation of OpenAPI documents in context of @egomobile/http-server.

Table of contents

Install []

Execute the following command from your project folder, where your package.json file is stored:

npm install --save @egomobile/openapi-schema-validator

Usage []

Quick example []

import createServer from "@egomobile/http-server";
import { validateSwaggerDocument } from "@egomobile/openapi-schema-validator";

const app = createServer();

const result = app.controllers();

// validate document schema
// and documents of controller methods
await validateSwaggerDocument({
  controllerMethods: result.methods,
  documentation: result.documentation,
});

await app.listen(8080);

Credits []

The module makes use of:

Documentation []

The API documentation can be found here.

Package Sidebar

Install

npm i @egomobile/openapi-schema-validator

Weekly Downloads

1

Version

0.2.1

License

LGPL-3.0

Unpacked Size

35.6 kB

Total Files

10

Last publish

Collaborators

  • ekmobile
  • egodux
  • mkloubertego
  • mkloubert
  • ekegodigital