Fix layout of manual schemas

This commit is contained in:
Era Dorta 2026-03-06 23:40:26 +01:00
parent 5f9fb1da88
commit a215294c68
3 changed files with 80 additions and 60 deletions

View File

@ -4,6 +4,18 @@
"title": "SyncDataMessage",
"type": "object",
"properties": {
"destination": {
"type": "string"
},
"destinationNumber": {
"type": "string"
},
"destinationUuid": {
"type": "string"
},
"editMessage": {
"$ref": "https://example.com/schemas/edit-message.schema.json"
},
"adminDelete": {
"$ref": "https://example.com/schemas/admin-delete.schema.json"
},
@ -19,18 +31,6 @@
"$ref": "https://example.com/schemas/shared-contact.schema.json"
}
},
"destination": {
"type": "string"
},
"destinationNumber": {
"type": "string"
},
"destinationUuid": {
"type": "string"
},
"editMessage": {
"$ref": "https://example.com/schemas/edit-message.schema.json"
},
"expiresInSeconds": {
"type": "integer"
},
@ -104,8 +104,6 @@
"required": [
"destinationNumber",
"destinationUuid",
"message",
"expiresInSeconds",
"timestamp"
]
}

View File

@ -1,40 +1,40 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/schemas/sync-message.schema.json",
"title": "SyncMessage",
"type": "object",
"properties": {
"blockedGroupIds": {
"type": "array",
"items": {
"type": "string"
}
},
"blockedNumbers": {
"type": "array",
"items": {
"type": "string"
}
},
"readMessages": {
"type": "array",
"items": {
"$ref": "https://example.com/schemas/sync-read-message.schema.json"
}
},
"sentMessage": {
"$ref": "https://example.com/schemas/sync-data-message.schema.json"
},
"sentStoryMessage": {
"$ref": "https://example.com/schemas/sync-story-message.schema.json"
},
"type": {
"type": "string",
"enum": [
"CONTACTS_SYNC",
"GROUPS_SYNC",
"REQUEST_SYNC"
]
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/schemas/sync-message.schema.json",
"title": "SyncMessage",
"type": "object",
"properties": {
"blockedGroupIds": {
"type": "array",
"items": {
"type": "string"
}
},
"blockedNumbers": {
"type": "array",
"items": {
"type": "string"
}
},
"readMessages": {
"type": "array",
"items": {
"$ref": "https://example.com/schemas/sync-read-message.schema.json"
}
},
"sentMessage": {
"$ref": "https://example.com/schemas/sync-data-message.schema.json"
},
"sentStoryMessage": {
"$ref": "https://example.com/schemas/sync-story-message.schema.json"
},
"type": {
"type": "string",
"enum": [
"CONTACTS_SYNC",
"GROUPS_SYNC",
"REQUEST_SYNC"
]
}
}
}
}
}

View File

@ -4,15 +4,15 @@
"title": "SyncStoryMessage",
"type": "object",
"properties": {
"allowsReplies": {
"type": "boolean"
},
"destinationNumber": {
"type": "string"
},
"destinationUuid": {
"type": "string"
},
"allowsReplies": {
"type": "boolean"
},
"fileAttachment": {
"$ref": "https://example.com/schemas/attachment.schema.json"
},
@ -20,13 +20,38 @@
"type": "string"
},
"textAttachment": {
"title": "JsonStoryMessage.TextAttachment",
"type": "object",
"properties": {
"backgroundColor": {
"type": "string"
},
"backgroundGradient": {
"type": "object"
"title": "JsonStoryMessage.TextAttachment.Gradient",
"type": "object",
"properties": {
"angle": {
"type": "integer"
},
"colors": {
"type": "array",
"items": {
"type": "string"
}
},
"endColor": {
"type": "string"
},
"positions": {
"type": "array",
"items": {
"type": "number"
}
},
"startColor": {
"type": "string"
}
}
},
"preview": {
"$ref": "https://example.com/schemas/preview.schema.json"
@ -43,10 +68,7 @@
"textForegroundColor": {
"type": "string"
}
},
"required": [
"text"
]
}
}
},
"required": [