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,52 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"deviceAuthToken": {
|
||||
"type": "string"
|
||||
},
|
||||
"actions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"encodedAction": {
|
||||
"type": "string"
|
||||
},
|
||||
"sequenceNumber": {
|
||||
"type": "number"
|
||||
},
|
||||
"integrity": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"appLogic",
|
||||
"child",
|
||||
"parent"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"encodedAction",
|
||||
"integrity",
|
||||
"sequenceNumber",
|
||||
"type",
|
||||
"userId"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"actions",
|
||||
"deviceAuthToken"
|
||||
],
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "ClientPushChangesRequest",
|
||||
"$id": "https://timelimit.io/ClientPushChangesRequest"
|
||||
}
|
||||
Reference in New Issue
Block a user