addedInput schema / $schema
Added value: +"http://json-schema.org/draft-07/schema#"
addedInput schema / additionalProperties
Added value: +{}
addedInput schema / properties / battlemaps
Added value: +{
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "_id": {
+ "description": "Mongo `_id` reference (24-character hex string).",
+ "minLength": 1,
+ "type": "string"
+ },
+ "visibleToPlayers": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+}
addedInput schema / properties / campaignId
Added value: +{
+ "description": "Campaign the session belongs to. Required.",
+ "minLength": 1,
+ "type": "string"
+}
addedInput schema / properties / characters
Added value: +{
+ "items": {
+ "description": "Mongo `_id` reference (24-character hex string).",
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "array"
+}
addedInput schema / properties / date
Added value: +{
+ "description": "Planned or actual session date in `dd/mm/yy` format. Required.",
+ "pattern": "^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2})$",
+ "type": "string"
+}
addedInput schema / properties / description
Added value: +{
+ "description": "Session body / notes / recap. Markdown supported.",
+ "type": "string"
+}
addedInput schema / properties / image
Added value: +{
+ "type": "string"
+}
addedInput schema / properties / name
Added value: +{
+ "description": "Session name / title.",
+ "minLength": 1,
+ "type": "string"
+}
addedInput schema / properties / sessionImages
Added value: +{
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "visibleToPlayers": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+}
addedInput schema / properties / status
Added value: +{
+ "enum": [
+ "pending",
+ "active",
+ "completed",
+ "cancelled"
+ ],
+ "type": "string"
+}
addedInput schema / properties / summary
Added value: +{
+ "description": "Short session summary. Max 150 characters.",
+ "maxLength": 150,
+ "type": "string"
+}
addedInput schema / required
Added value: +[
+ "campaignId",
+ "date"
+]