{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "rating", "type": "object", "properties": { "context": { "allOf": [ { "$ref": "./definitions.json#/$defs/Context" }, { "type": "object", "properties": { "action": { "enum": [ "rating" ] } }, "required": [ "action" ] } ] }, "message": { "type": "object", "properties": { "ratings": { "type": "array", "items": { "$ref": "./definitions.json#/$defs/Rating" } } } } }, "required": [ "message", "context" ] }