Open johnfercher opened 1 week ago
Hi, good idea. I think we can disable this feature by default, and user can enable it if they want to (like vendor imports checking).
Raw config contract:
allow:
- useAnyTags: false # default is true. User should explicitly turn off this, for checking tags.
commonTags: # this tags will be always allowed for all structs
- json
- yaml
# all other tags is disallowed, and we need explicitly allow them
deps:
repositories:
mayUseTags:
- db # allow db for this layer
- gorm # allow orm staff
I will implement this in v4 if nobody makes it before.
Hello, bro. Awesome work that you did here. This is just what I was looking for.
I have a suggestion for you, when working with DDD the entities that we define have to be free of any implementation detail. So, if we have something like:
internal/core/models/entity.go
We are coupling our entities to GORM and JSON details.
I think that this lib should have a rule to that. Something as: