Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIncorrect typespecs/docs for Posion.decode/2 and Parser.parse/2 #142
Comments
|
I've also noticed this. Any word? |
Version: 3.1.0
It looks like
{:error, :invalid, integer}is a valid return type for bothPoison.decode/2andParser.parser/2, but neither type spec reflects this.Here is where a tuple of that type is possibly returned:
Notice the typespecs of
Poison.decode/2andParser.parser/2do not include this type:I noticed this when
{:error, :invalid, 0}was returned byPoison.decode/2in our production app.