▲ | CactusRocket a day ago | |||||||
If you use the same struct in both an HTTP API and an ORM, you're Doing It Wrong in my opinion. These should be completely separated. Exactly to prevent accidental leaking or injection of data. | ||||||||
▲ | zimpenfish a day ago | parent [-] | |||||||
> If you use the same struct in both an HTTP API and an ORM, you're Doing It Wrong in my opinion. If you mean "public API", yep, 100% agree. Internal API between microservices though? Perfectly safe and cromulent, I'd say. | ||||||||
|