Add with_tail to decode spec

`with_tail` was not defined in the spec and would fail usage of anyone
using this return format
This commit is contained in:
Philip Cristiano 2020-04-29 16:51:39 -04:00
parent b6c9408977
commit cc4d7121b3
2 changed files with 4 additions and 0 deletions

View file

@ -46,6 +46,7 @@
-ifndef(maps_support).
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
| [json_term()] | []
| {with_tail, json_term(), binary()}
| true | false | null
| integer() | float()
| binary() | atom()
@ -55,6 +56,7 @@
-ifdef(maps_support).
-type json_term() :: [{binary() | atom(), json_term()}] | [{},...]
| [json_term()] | []
| {with_tail, json_term(), binary()}
| #{ binary() | atom() => json_term() }
| true | false | null
| integer() | float()

View file

@ -47,6 +47,7 @@
-ifndef(maps_support).
-type json_value() :: list(json_value())
| list({binary() | atom(), json_value()}) | [{},...]
| {with_tail, json_value(), binary()}
| true
| false
| null
@ -58,6 +59,7 @@
-ifdef(maps_support).
-type json_value() :: list(json_value())
| list({binary() | atom(), json_value()}) | [{},...]
| {with_tail, json_value(), binary()}
| map()
| true
| false