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
Conftest does a lot of similar operations for the various config languages it supports. It may be possible to implement some of this using generics rather than having the same logic implemented over and over.
A function signature for the parser may look something like func parse[T any](data []byte, unmarshal func([]byte, T) error) (map[string]any, error) { ... }
yeah, +1 to be using the new form among the parsers.
One caveat is that conftest consumers would need to refactor their code to apply the new form if they depend on parser, still, I think we can mention it in the release notes to spread the change gracefully
Conftest does a lot of similar operations for the various config languages it supports. It may be possible to implement some of this using generics rather than having the same logic implemented over and over.
cc @boranx
The text was updated successfully, but these errors were encountered: