Open 1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP opened 2 months ago
This jsdoc is also wrong, the parameter names should be opts.page
and opts.limit
respectively:
current
/**
* Get all Customers
* Get all Customers
* @param {Object} opts Optional parameters
* @param {Number} [page] Page you want to display // THIS LINE IS WRONG
* @param {Number} [limit] Items per page // THIS LINE IS WRONG
* @param {module:api/CustomerApi~customersGetCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Array.<module:model/CustomersGet200ResponseInner>}
*/
customersGet(opts, callback) {
opts = opts || {};
let postBody = null;
let pathParams = {
};
let queryParams = {
'page': opts['page'],
'limit': opts['limit']
};
Bug Report Checklist
Description
the generated file
src/ApiClient.js
contains this code:Any good editor with jsdoc support will flag this as
Object literal may only specify known properties, and ''Bearer'' does not exist in type 'string[]'.ts(2353)
, because the jsdoc says its an array of string, but it's assigned a map from string to objects.A similar error occurs for
defaultHeaders
.The jsdoc for
callApi
refers toa typeObjectFunction
, which is not defined.openapi-generator version
7.8.0
OpenAPI declaration file content or url
I don;t think it's relevant
Generation Details
using npm
openapi-generator-cli generate -i ./openapi.json -g javascript -o ./generated