Skip to content

bug: api type for customData doesn't allow customDataΒ #8043

@FuturPanda

Description

@FuturPanda

Describe the bug

The typescript type for the Organization customDate is Record<string, never> which is representing a empty object, but doesn't allow anything else than en empty object.

Expected behavior

The Type should be of Record<string, any> or Record<string, unknown> to allow objects to be used for organization creation.

How to reproduce?

  1. Install @logto/api
  2. create a Post request to api/organization
  3. try to put an non empty object to customData

Environment

Self-hosted (Docker image)

Screenshots

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions