import { Collection } from "./MySchema"; interface Options { typeScriptOutputFolder: string; openapiOutput: string; } interface Description { collections: Collection[]; } interface FileWrite { location: string; content: string; } export function generate(options: Options, description: Description): FileWrite[] { // generate model files // generate data access files // generate middleware file // generate openapi file // -> see https://swagger.io/docs/specification/describing-responses/ return []; }