Fix for Issue 3459 apicurio - warnings are not updated when changed via gui and saved
the problem was that the CustomConnectorRequest instance is being reused and all the validation properties were not being cleared before re-validation.
now clearing out these properties before requesting validation: actionsSummary, errors, and warnings.
@@ -170,6 +170,7 @@ export class ApiConnectorCreateComponent implements OnInit, OnDestroy {
// save current state of editor
const value = this._apiEditor.getValue();
this.apiDef.spec = value[ 'spec' ]; // used in onCreateComplete
+ this.editorHasChanges = false;
// go back to review step
this.displayDefinitionEditor = false;
@@ -179,7 +180,10 @@ export class ApiConnectorCreateComponent implements OnInit, OnDestroy {
const request = {
...this.validationResponse,
- specificationFile: file
+ specificationFile: file,
+ actionsSummary: {},
+ errors: [],
+ warnings: []
} as CustomConnectorRequest;
this.apiConnectorStore.dispatch(
