cool-parrot-57553
09/27/2023, 1:20 AM{
"error": {
"code": 400,
"status": "Bad Request",
"reason": "I[#] S[#/required] missing properties: \"email\"",
"message": "The request was malformed or contained invalid parameters"
}
}
But my thing very obviously contains email?
{
"credentials": {
"password": {
"config": {
"password": "password123"
}
}
},
"schema_id": "student",
"traits": {
"email": "<mailto:[email protected]|[email protected]>",
"name": {
"first": "John",
"last": "Smith"
}
},
"verifiable_addresses": [
{
"status": "verified",
"value": "<mailto:[email protected]|[email protected]>",
"verified": true,
"via": "email"
}
]
}
Here's the schema, for added effect
{
"$schema": "<http://json-schema.org/draft-07/schema#>",
"$id": "<https://nukohon.jessnuko.bid/student.schema.json>",
"title": "Student v1",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"name": {
"type": "object",
"properties": {
"first": {
"type": "string"
},
"last": {
"type": "string"
}
}
},
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
}
}
}
}
},
"required": [
"email"
],
"additionalProperties": false
}bland-eye-99092
09/27/2023, 7:12 AMtraits.email (the actual string "traits.email" ).boundless-megabyte-11649
09/27/2023, 7:38 AMrequired nested inside traits, not root properties directly and it works well
{
...
"properties": {
"traits": {
"type": "object",
"properties": {
...
},
"required": ["email", "name"],
"additionalProperties": false
}
}
}cool-parrot-57553
09/28/2023, 9:32 PM