{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-schema/devportal-api-chat-message-schema.json",
"title": "ChatMessage",
"description": "ChatMessage schema from WSO2 API Manager",
"required": [
"content",
"role"
],
"type": "object",
"properties": {
"role": {
"type": "string",
"description": "user or assistant role of a chat message.",
"example": "assistant"
},
"content": {
"type": "string",
"description": "content of the message.",
"example": "Hi, How can I help you?"
}
}
}