mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-29 03:24:07 +00:00
Some issuers (e.g. PaperOS) emit `scope` as a JSON array (`[]` or `["openid","profile"]`) instead of the RFC 6749 space-delimited string. SpaceDelimited.UnmarshalJSON now accepts both forms; a JSON array is converted to the equivalent slice. Other non-string, non-array values still return an error. Adds test cases: array_values and array_empty.