UNPKG

@standard-community/standard-openapi

Version:

[![npm version](https://img.shields.io/npm/v/@standard-community/standard-openapi.svg)](https://npmjs.org/package/@standard-community/standard-openapi "View this project on NPM") [![npm downloads](https://img.shields.io/npm/dm/@standard-community/standard

2 lines (1 loc) 535 B
"use strict";var a=Object.defineProperty;var n=(e,r)=>a(e,"name",{value:r,configurable:!0});const o=n(async e=>{const r=e["~standard"].vendor;let t;switch(r){case"arktype":case"effect":case"valibot":t=Promise.resolve().then(function(){return require("./default-C7_LgS8R.cjs")});break;case"zod":t=Promise.resolve().then(function(){return require("./zod-hd0-fbCt.cjs")});break;default:throw new Error(`standard-openapi: Unsupported schema vendor "${r}"`)}return await(await t).generator(e)},"toOpenAPISchema");exports.toOpenAPISchema=o;