How to use the @stoplight/prism-core.factory function in @stoplight/prism-core

To help you get started, we’ve selected a few @stoplight/prism-core 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 stoplightio / prism / packages / http / src / index.ts View on Github external
export const createInstance = (
  defaultConfig: IHttpConfig | IHttpProxyConfig,
  components: PickRequired, 'logger'>
) =>
  factory(
    defaultConfig,
    defaults(components, { route, validateInput, validateOutput, validateSecurity, mock, forward })
  );