How to use the zapier-platform-schema/lib/schemas/RequestSchema.validate function in zapier-platform-schema

To help you get started, we’ve selected a few zapier-platform-schema 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 zapier / zapier-platform-core / src / tools / create-lambda-handler.js View on Github external
const isRequestOrFunction = obj => {
  return (
    RequestSchema.validate(obj).valid || FunctionSchema.validate(obj).valid
  );
};

zapier-platform-schema

Schema definition for CLI apps in the Zapier Developer Platform.

SEE LICENSE IN LICENSE
Latest version published 21 days ago

Package Health Score

87 / 100
Full package analysis