We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf4b28 commit b81380fCopy full SHA for b81380f
hivemq-edge/src/main/java/com/hivemq/api/resources/impl/ProtocolAdaptersResourceImpl.java
@@ -266,6 +266,11 @@ public int getDepth() {
266
if (instance.isEmpty()) {
267
return ApiErrorUtils.notFound("Cannot update an adapter that does not exist");
268
}
269
+ ApiErrorMessages errorMessages = ApiErrorUtils.createErrorContainer();
270
+ validateAdapterSchema(errorMessages, adapter);
271
+ if (ApiErrorUtils.hasRequestErrors(errorMessages)) {
272
+ return ApiErrorUtils.badRequest(errorMessages);
273
+ }
274
if (logger.isDebugEnabled()) {
275
logger.debug("Updating adapter \"{}\".", adapterId);
276
0 commit comments