Skip to content

[openapi-spec] fix: email field in Claims schema does not exist #162

@jonasbadstuebner

Description

@jonasbadstuebner

I started implementing a frontend solution for Hanko based on the API docs and found the following dissonance between the servers reply and the documented behavior.

It's documented, that the payload on a response representing a success state, contains the data of the following shape under .payload.claims:

Claims:
  description: Contains the claims of a user as they appear in the payload of session JWTs.
  type: object
  properties:
    subject:
      type: string
      format: uuid4
    issued_at:
      type: string
      format: date-time
    audience:
      type: array
      items:
        type: string
    issuer:
      type: string
    email:
      type: object
      properties:
        address:
          type: string
        is_verified:
          type: boolean
        is_primary:
          type: boolean

But the email field does not exist.

EDIT: there is no emails field there either, this is under user only.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions