1 | import { ServerObject, ServerVariableObject } from './oas-common';
|
2 | import { IExtensionName, IExtensionType } from './specification-extension';
|
3 | export declare class Server implements ServerObject {
|
4 | url: string;
|
5 | description?: string;
|
6 | variables: {
|
7 | [v: string]: ServerVariable;
|
8 | };
|
9 | [k: IExtensionName]: IExtensionType;
|
10 | constructor(url: string, desc?: string);
|
11 | addVariable(name: string, variable: ServerVariable): void;
|
12 | }
|
13 | export declare class ServerVariable implements ServerVariableObject {
|
14 | enum?: string[] | boolean[] | number[];
|
15 | default: string | boolean | number;
|
16 | description?: string;
|
17 | [k: IExtensionName]: IExtensionType;
|
18 | constructor(defaultValue: string | boolean | number, enums?: string[] | boolean[] | number[], description?: string);
|
19 | }
|