diff --git a/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs b/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs index 80eebd829..5599c0b91 100644 --- a/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs +++ b/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs @@ -429,6 +429,7 @@ public Task UpdateComplexFormType(Guid id, UpdateObjectInput UpdateComplexFormType(ComplexFormType before, ComplexFormType after) { + await validators.ValidateAndThrow(after); await ComplexFormTypeSync.Sync(before, after, this); return ToComplexFormType(ComplexFormTypesFlattened.Single(c => c.Guid == after.Id)); } diff --git a/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs b/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs index 44fa6fcd0..3663434ff 100644 --- a/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs +++ b/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs @@ -192,6 +192,7 @@ public async Task UpdateComplexFormType(Guid id, UpdateObjectIn public async Task UpdateComplexFormType(ComplexFormType before, ComplexFormType after) { + await validators.ValidateAndThrow(after); await ComplexFormTypeSync.Sync(before, after, this); return await GetComplexFormType(after.Id) ?? throw new NullReferenceException($"unable to find complex form type with id {after.Id}"); }