How to use oas3-chow-chow - 1 common examples

To help you get started, we’ve selected a few oas3-chow-chow examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atlassian / koa-oas3 / src / index.ts View on Github external
function compileOas(config: Config) {
  let openApiObject: any = config.spec || loadFromFile(config.file);
  if (!oasValidator.validateSync(openApiObject, {})) {
    throw new Error('Invalid Openapi document');
  }
  return {
    compiled: new ChowChow(openApiObject),
    doc: openApiObject,
  };
}

oas3-chow-chow

> Request and response validator against OpenAPI Specification

Apache-2.0
Latest version published 6 months ago

Package Health Score

58 / 100
Full package analysis

Popular oas3-chow-chow functions

Similar packages