I have an external data model framework with frequent updates to the names of fields. Say for an iteration I implement on
- EnterpriseModelObject
-- EnterpriseDomainContentList
--- EnterpriseDomainContent
-- ContentDeliveryResult
--- ErrorList
---- Error
--- WarningList
---- Warning
Another iteration this will become
- EnterpriseModelObject
-- EnterpriseContentList
--- EnterpriseContent
-- DeliveryResult
--- EnterpriseErrorList
---- EnterpriseError
--- EnterpriseWarningList
---- EnterpriseWarning
I have a number of microservices that require converting a variety of bean types to this model and back. For this I have a library that does the common work but I am still struggling with updates when my bean model changes.
The microservices are implemented to directly use the object names in the model and the library simply provides common conversion methods. So when I start updating the conversion library this breaks the unit tests in the service APIs. Ideally I want to be able to localize all object name changes to my library and the services will return the correct fields without requiring micromanagement.
What kind of approach should I take with the services so that they automatically use the updates without compilation or unit test issues?