mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add documentation of the json schemas
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/SerializedChildChangePasswordAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedChildSignInAction"
|
||||
}
|
||||
],
|
||||
"definitions": {
|
||||
"SerializedChildChangePasswordAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"CHILD_CHANGE_PASSWORD"
|
||||
]
|
||||
},
|
||||
"password": {
|
||||
"$ref": "#/definitions/ParentPassword"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"password",
|
||||
"type"
|
||||
],
|
||||
"title": "SerializedChildChangePasswordAction"
|
||||
},
|
||||
"ParentPassword": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"hash": {
|
||||
"type": "string"
|
||||
},
|
||||
"secondHash": {
|
||||
"type": "string"
|
||||
},
|
||||
"secondSalt": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"hash",
|
||||
"secondHash",
|
||||
"secondSalt"
|
||||
],
|
||||
"title": "ParentPassword"
|
||||
},
|
||||
"SerializedChildSignInAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"CHILD_SIGN_IN"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "SerializedChildSignInAction"
|
||||
}
|
||||
},
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "SerializedChildAction",
|
||||
"$id": "https://timelimit.io/SerializedChildAction"
|
||||
}
|
||||
Reference in New Issue
Block a user