UNPKG

api

Version:

Magical SDK generation from an OpenAPI definition 🪄

11 lines (10 loc) • 391 B
import type Oas from 'oas'; /** * With an SDK server config and an instance of OAS we should extract and prepare the server and * any server variables to be supplied to `@readme/oas-to-har`. * */ export default function prepareServer(spec: Oas, url: string, variables?: Record<string, string | number>): false | { selected: number; variables: Record<string, string | number>; };