Hitting some cases where my tap is outputting data...
# singer-tap-development
v
Hitting some cases where my tap is outputting data that isn't valid according to my defined json schema. Is there a flag to turn on validation checking in the tap? Tried searching the docs real quick and didn't see anything. Right now I just pipe the data to jsonl and it does the trick, but there's some things that are a bit tough to debug that would be easier if my tap did this for me
t
I don't know actually.. <!subteam^S02BCD9FFEF>?
e
at the moment there's no builtin way in the SDK to validate that records match the declared schema. A
--validate
option could be added if that'd be valuable for folks
a
Thanks for logging. I've added some comments there in the issue. Certainly it seems like this should at least be tested in the default pytest suite. And then (if it's valuable to do so) an additional config arg like
validate_records=true
could tell the tap to test each record before it's emitted.