How do you use FlagOutput() ?
Closed this issue · 2 comments
Surfoo commented
Hello,
I try to use FlagOutput
(or BasicOutput
), but I got this error: (You can try on https://go.dev/play/p/XCXPoSTgDfM)
err.FlagOutput undefined (type error has no field or method FlagOutput)
but the type of err
is ok: *jsonschema.ValidationError
What am I doing wrong?
santhosh-tekuri commented
You need to type cast err to *jsonschema.ValidationError
Surfoo commented
Ah, thanks!