I understand that sharing code between microserices in an anti-pattern, but what about sharing DTOs between the API Gateway and the services it communicates with?
Is it better to copy all of the DTOs from all of the services into the gateway?
Or is it better to have a common module that can be reused by the gateway and each service?