| { |
| "$id": "https://unomi.apache.org/schemas/json/contextrequest/1-0-0", |
| "$schema": "https://json-schema.org/draft/2019-09/schema", |
| "title": "ContextRequest", |
| "type": "object", |
| "properties": { |
| "source": { |
| "$ref": "https://unomi.apache.org/schemas/json/item/1-0-0" |
| }, |
| "requireSegments": { |
| "type": ["null", "boolean"] |
| }, |
| "requiredProfileProperties": { |
| "type": ["null", "array"], |
| "items": { |
| "type": "string" |
| } |
| }, |
| "requiredSessionProperties": { |
| "type": ["null", "array"], |
| "items": { |
| "type": "string" |
| } |
| }, |
| "requireScores": { |
| "type": ["null", "boolean"] |
| }, |
| "events": { |
| "type": ["null", "array"], |
| "items": { |
| "$ref": "https://unomi.apache.org/schemas/json/event/1-0-0" |
| } |
| }, |
| "filters": { |
| "type": ["null", "array"], |
| "items": { |
| "$ref": "https://unomi.apache.org/schemas/json/personalization/personalizedcontent/1-0-0" |
| } |
| }, |
| "personalizations": { |
| "type": ["null", "array"], |
| "items": { |
| "$ref": "https://unomi.apache.org/schemas/json/personalization/personalizedrequest/1-0-0" |
| } |
| }, |
| "profileOverrides": { |
| "$ref": "https://unomi.apache.org/schemas/json/profile/1-0-0" |
| }, |
| "sessionPropertiesOverrides": { |
| "type": ["null", "object"], |
| "maxProperties": 50 |
| }, |
| "sessionId": { |
| "type": ["null", "string"], |
| "pattern" : "^(\\w|[-_@\\.]){0,60}$" |
| }, |
| "profileId": { |
| "type": ["null", "string"], |
| "pattern" : "^(\\w|[-_@\\.]){0,60}$" |
| }, |
| "clientId": { |
| "type": ["null", "string"] |
| } |
| } |
| } |