@ahoo-wang/fetcher-openapi
Version:
OpenAPI Specification TypeScript types for Fetcher - A modern, ultra-lightweight HTTP client for browsers and Node.js. Provides complete TypeScript support with type inference for OpenAPI 3.x schemas.
26 lines • 898 B
TypeScript
import { Extensible } from './extensions';
/**
* Server variable for URL template substitution
*
* @property enum - An enumeration of string values to be used if the substitution options are from a limited set
* @property default - The default value to use for substitution
* @property description - An optional description for the server variable
*/
export interface ServerVariable extends Extensible {
enum?: string[];
default: string;
description?: string;
}
/**
* Server configuration details
*
* @property url - A URL to the target host
* @property description - An optional string describing the host designated by the URL
* @property variables - A map between a variable name and its value
*/
export interface Server extends Extensible {
url: string;
description?: string;
variables?: Record<string, ServerVariable>;
}
//# sourceMappingURL=server.d.ts.map