Skip to content

Instantly share code, notes, and snippets.

@dmnkgrc
Last active October 2, 2020 14:24
Show Gist options
  • Select an option

  • Save dmnkgrc/7ffbc216c129e5d0473fd781bd0bd5f7 to your computer and use it in GitHub Desktop.

Select an option

Save dmnkgrc/7ffbc216c129e5d0473fd781bd0bd5f7 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"description": "The user's email address.",
"type": "string",
"format": "email",
"title": "E-Mail",
"ory.sh/kratos": {
"credentials": {
"password": {
"identifier": true
}
}
}
},
"name": {
"description": "The user's full name.",
"type": "string"
},
"groups": {
"description": "The user's groups",
"type": "array"
}
},
"required": ["email", "name", "groups"],
"additionalProperties": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment