fix: fix broken servers

This commit is contained in:
Roman Hotsiy 2020-04-07 14:44:21 +03:00
parent a4cee05d67
commit 2b36becad9
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ export type ExtendedOpenAPIOperation = {
pathName: string;
httpVerb: string;
pathParameters: Array<Referenced<OpenAPIParameter>>;
pathServers: Array<OpenAPIServer>;
pathServers: Array<OpenAPIServer> | undefined;
} & OpenAPIOperation;
export type TagsInfoMap = Dict<TagInfo>;
@ -250,7 +250,7 @@ export class MenuBuilder {
pointer: JsonPointer.compile(['paths', pathName, operationName]),
httpVerb: operationName,
pathParameters: path.parameters || [],
pathServers: path.servers || [],
pathServers: path.servers,
});
}
}

View File

@ -37,7 +37,7 @@ export class CallbackModel {
pointer: JsonPointer.compile([pointer, name, pathName, operationName]),
httpVerb: operationName,
pathParameters: path.parameters || [],
pathServers: path.servers || [],
pathServers: path.servers,
},
undefined,
options,