Skip to content

Identity schema and validation of booleans #97

Answered by aeneasr
adrianrudnik asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, in my initial reply I missed the UI issues!

The JSON Schema does not need an "enum".

{
  "$id": "https://schemas.ory.sh/presets/kratos/identity.username.schema.json",
  "title": "Person",
  "type": "object",
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string",
          "title": "Username",
          "maxLength": 100,
          "ory.sh/kratos": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "webauthn": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@adrianrudnik
Comment options

@aeneasr
Comment options

Answer selected by adrianrudnik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants