mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
fix: fix broken servers
This commit is contained in:
parent
a4cee05d67
commit
2b36becad9
|
@ -27,7 +27,7 @@ export type ExtendedOpenAPIOperation = {
|
||||||
pathName: string;
|
pathName: string;
|
||||||
httpVerb: string;
|
httpVerb: string;
|
||||||
pathParameters: Array<Referenced<OpenAPIParameter>>;
|
pathParameters: Array<Referenced<OpenAPIParameter>>;
|
||||||
pathServers: Array<OpenAPIServer>;
|
pathServers: Array<OpenAPIServer> | undefined;
|
||||||
} & OpenAPIOperation;
|
} & OpenAPIOperation;
|
||||||
|
|
||||||
export type TagsInfoMap = Dict<TagInfo>;
|
export type TagsInfoMap = Dict<TagInfo>;
|
||||||
|
@ -250,7 +250,7 @@ export class MenuBuilder {
|
||||||
pointer: JsonPointer.compile(['paths', pathName, operationName]),
|
pointer: JsonPointer.compile(['paths', pathName, operationName]),
|
||||||
httpVerb: operationName,
|
httpVerb: operationName,
|
||||||
pathParameters: path.parameters || [],
|
pathParameters: path.parameters || [],
|
||||||
pathServers: path.servers || [],
|
pathServers: path.servers,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ export class CallbackModel {
|
||||||
pointer: JsonPointer.compile([pointer, name, pathName, operationName]),
|
pointer: JsonPointer.compile([pointer, name, pathName, operationName]),
|
||||||
httpVerb: operationName,
|
httpVerb: operationName,
|
||||||
pathParameters: path.parameters || [],
|
pathParameters: path.parameters || [],
|
||||||
pathServers: path.servers || [],
|
pathServers: path.servers,
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
options,
|
options,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user