Optionally exclude validator from build
Closed this issue ยท 1 comments
chr1shung commented
๐ Feature Request
Relevant Package [REQUIRED]
go-mod-core-contracts
Description [REQUIRED]
The validator dependency is adding ~2MB memory footprint for each service:
go-mod-core-contracts/common/validator.go
Lines 44 to 52 in eaba535
But not all of them are actually using it.
It would be nice to be able to build service without this dependency.
Describe the solution you'd like
A no_dto_validator
build flag and corresponding no-op code for the factory seem ideal this would make it easy to produce lighter builds.