Comments Schema
Introduction
Schema Overview
Structure Definition
JSON Schema (Simplified Overview)
{
"type": "object",
"patternProperties": {
"^[a-z0-9-]{36}$": {
"type": "object",
"properties": {
"content": { "type": "string" },
"parentCommentId": { "type": ["string", "null"] },
"elementId": { "type": "string" },
"responses": {
"type": "array",
"items": { "type": "string" }
},
"timestamp": { "type": "string", "format": "date-time" },
"author": {
"type": "object",
"properties": {
"uid": { "type": "string" },
"username": { "type": "string" },
"userColor": { "type": "string" }
},
"required": ["uid", "username", "userColor"]
},
"isElementDeleted": { "type": "boolean" }
},
"required": ["content", "elementId", "timestamp", "author"]
}
}
}Field Descriptions
Usage Examples
Example: Threaded Comments
Additional Considerations
Last updated
Was this helpful?

