askvortsov1/flarum-categories

Api /tags postCount parameter type is not clear

Closed this issue · 1 comments

xkeyC commented

open siteurl/api/tags

data > tag > attributes > postCount

If postCount is 0, then it is an int, otherwise it is a String number. When I developed a client using a strongly typed language, I encountered a type conversion problem. I can use type inference to temporarily solve the problem, but I hope its type can be fixed .

Fixed in v1.0.0, thanks for the report!