You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say for instance that you change your API by replacing a nested type with a reference. Then in your "pastConverter" you would probably need a database lookup. That would be easier to achieve if the converters could be stateful instead of being created new each time, like they are now.
and you remove the address field and replace it with addressId. Then to be backwards compatible you would need to lookup the address from your database.
It looks like it could be achieved by allowing the VersioningModule-class to accept a list of converter instances or some kind of ConverterRepository.
The text was updated successfully, but these errors were encountered:
Say for instance that you change your API by replacing a nested type with a reference. Then in your "pastConverter" you would probably need a database lookup. That would be easier to achieve if the converters could be stateful instead of being created new each time, like they are now.
Example:
Say your API contains a Person type:
and you remove the address field and replace it with addressId. Then to be backwards compatible you would need to lookup the address from your database.
It looks like it could be achieved by allowing the VersioningModule-class to accept a list of converter instances or some kind of ConverterRepository.
The text was updated successfully, but these errors were encountered: