Hello
It seems that when I debug my application that utilises a swagger link I get a compile error on the swagger.services.ts file. Code snippet is below:-
headers = headers.set('Accept', 'application/json');
let params = new HttpParams();
if (deviceUuid) {
params = params.set('deviceUUID', deviceUuid);
} if (fromDate) {
params = params.set('from_date', fromDate);
} if (toDate) {
params = params.set('to_date', toDate);
} if (limit != null) {
params = params.set('limit', limit.toString());
} else {
params = params.set('limit', 30);
}
if (offset != null) {
params = params.set('offset', offset.toString());
} else {
params = params.set('offset', 0);
}
if (sort != null) {
params = params.set('sort', sort.toString());
} else {
params = params.set('sort', 1);
}
if (exist) {
params = params.set('exist', exist);
}
It seems that the limit and offset, which are numeric values, are being set as that in the file but the non-null values are being set to a string. When i edit the file to put quotes around the numeric values it compiles ok but, of course, these are then overwritten again. Can you please help?