jsonapi icon indicating copy to clipboard operation
jsonapi copied to clipboard

Non-string fields are converted to string values due to str_replace

Open rogierkoppejan opened this issue 4 years ago • 0 comments

Replacements are applied using str_replace in Parser.php, but this converts null or boolean value to string values ("" and "1" respectively), which breaks API spec. I suggest using str_replace only for string fields, as these are also the only ones that might contain any replacement values at all.

rogierkoppejan avatar May 01 '20 12:05 rogierkoppejan