Browse Source

deleted redundant swagger schema

pull/10971/head
dashevchenko 2 years ago
parent
commit
03eabdc3df
  1. 6
      application/src/main/java/org/thingsboard/server/controller/DashboardController.java

6
application/src/main/java/org/thingsboard/server/controller/DashboardController.java

@ -250,7 +250,7 @@ public class DashboardController extends BaseController {
public Dashboard updateDashboardCustomers(
@Parameter(description = DASHBOARD_ID_PARAM_DESCRIPTION)
@PathVariable(DASHBOARD_ID) String strDashboardId,
@Parameter(description = "JSON array with the list of customer ids, or empty to remove all customers", array = @ArraySchema(schema = @Schema(type = "string")))
@Parameter(description = "JSON array with the list of customer ids, or empty to remove all customers")
@RequestBody(required = false) String[] strCustomerIds) throws ThingsboardException {
checkParameter(DASHBOARD_ID, strDashboardId);
DashboardId dashboardId = new DashboardId(toUUID(strDashboardId));
@ -268,7 +268,7 @@ public class DashboardController extends BaseController {
public Dashboard addDashboardCustomers(
@Parameter(description = DASHBOARD_ID_PARAM_DESCRIPTION)
@PathVariable(DASHBOARD_ID) String strDashboardId,
@Parameter(description = "JSON array with the list of customer ids", array = @ArraySchema(schema = @Schema(type = "string")))
@Parameter(description = "JSON array with the list of customer ids")
@RequestBody String[] strCustomerIds) throws ThingsboardException {
checkParameter(DASHBOARD_ID, strDashboardId);
DashboardId dashboardId = new DashboardId(toUUID(strDashboardId));
@ -286,7 +286,7 @@ public class DashboardController extends BaseController {
public Dashboard removeDashboardCustomers(
@Parameter(description = DASHBOARD_ID_PARAM_DESCRIPTION)
@PathVariable(DASHBOARD_ID) String strDashboardId,
@Parameter(description = "JSON array with the list of customer ids", array = @ArraySchema(schema = @Schema(type = "string")))
@Parameter(description = "JSON array with the list of customer ids")
@RequestBody String[] strCustomerIds) throws ThingsboardException {
checkParameter(DASHBOARD_ID, strDashboardId);
DashboardId dashboardId = new DashboardId(toUUID(strDashboardId));

Loading…
Cancel
Save