Open oflatt opened 3 months ago
Make sense. IIRC, there were some issue with the wrapper types for the public API that made this the convenient way to do things. You can add it to the internal with a bit of duplicate code. Feel free to refactor if you see a nicer way to do it.
Describe the improvement you'd like to request
api::ValidationResult
is a wrapper fordiagnostics::ValidationResult
that implementsDiagnostic
andError
. However, this makes things awkward internally sincediagnostics::ValidationResult
doesn't have an error implementation.I propose we move the implementation of error and diagnostic to the inner
diagnostics::ValidationResult
.Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?