I have added the feature for the BBS to be able to accept user messages and display all messages. Still to be done: asc pages for messages and implementation of that. Yes, I do know that I'm still including my test data in the json files. I do not care.
32 lines
702 B
JSON
32 lines
702 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://bbs.sb17.space/message.schema.json",
|
|
"title": "Message",
|
|
"description": "A Pyscii-BBS message object",
|
|
"type": "object",
|
|
"properties": {
|
|
"id" : {
|
|
"description": "The unique ID of the message entity",
|
|
"type": "integer"
|
|
},
|
|
"subject": {
|
|
"description": "The subject of the message entity",
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"description": "The message body.",
|
|
"type": "string"
|
|
},
|
|
"date": {
|
|
"description": "The date the message is posted",
|
|
"type": "datetime",
|
|
},
|
|
},
|
|
"required": [
|
|
"id",
|
|
"subject",
|
|
"body",
|
|
"date"
|
|
]
|
|
}
|