santhosh-tekuri/jsonschema

How do you use FlagOutput() ?

Closed this issue · 2 comments

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?

You need to type cast err to *jsonschema.ValidationError

Ah, thanks!