File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
ai/src/main/java/com/alibaba/nacos/ai/form/a2a/admin Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1616
1717package com .alibaba .nacos .ai .form .a2a .admin ;
1818
19+ import com .alibaba .nacos .api .exception .api .NacosApiException ;
20+ import com .alibaba .nacos .common .utils .StringUtils ;
21+
1922import java .io .Serial ;
2023
2124/**
@@ -42,4 +45,13 @@ public void setSetAsLatest(boolean setAsLatest) {
4245 protected void fillDefaultRegistrationType () {
4346 // Update does not need to fill registration type
4447 }
48+
49+ @ Override
50+ protected void validateRegistrationType () throws NacosApiException {
51+ // Update request if no set registration type, means not change the registration type
52+ if (StringUtils .isEmpty (getRegistrationType ())) {
53+ return ;
54+ }
55+ super .validateRegistrationType ();
56+ }
4557}
You can’t perform that action at this time.
0 commit comments