Skip to content

Claim implementation does not match Claim Interface documentation #466

@dude-abides

Description

@dude-abides

Issue:
I am trying to iterate over claims and print them for debugging purposes. So I call asString() on every claim. It seem Boolean claims always return null.

return !data.isTextual() ? null : data.asText();

Comments:

  1. I don't see a way to determine the type of a claim. It would be nice to have a getClaimClass() or getClaimType()
  2. The interface docs. for asString in Claim suggests that if a type can be converted to String, then that would be returned.
  3. It appears the toString() is the default impl. it might be nice to have this be: return value == null ? null : value.toString()

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions