teamhanko / hanko

Authentication and user management for the passkey era.

Home Page:https://hanko.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import users: JSON schema not accurate

lfleischmann opened this issue · comments

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Describe the bug

The JSON schema for the user import file is not accurate. Certain fields/properties are marked as required but should be optional.

Reproducing the bug

  1. Create a JSON file. Add contents according to the schema in backend/json_schema/hanko.user_import.json. Try to omit fields that are currently required but should be optional as suggested by code comments, e.g. user_id or created_at/updated_at for an ImportEntry:
[
  {
    "emails": [],
  }
]
  1. Validate the file using the schema by associating with the backend/json_schema/hanko.user_import.json schema in your IDE or use different validator.

Logs

No response

Configuration

No response

Hanko Version

d5f0bb0

OS Hanko Backend

None

OS Version Hanko Backend

No response

OS

None

OS Version

No response

Browser Version

No response

Environment

None

Additional Context

No response