From 2f74665e176d1990195f4ea7195973991e257d80 Mon Sep 17 00:00:00 2001 From: chime3 Date: Thu, 5 Sep 2024 20:19:45 -0700 Subject: [PATCH 1/4] fix: modified required fields --- social/event/v0.1.0/schema.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/social/event/v0.1.0/schema.json b/social/event/v0.1.0/schema.json index 3ae5a44..34c2fce 100644 --- a/social/event/v0.1.0/schema.json +++ b/social/event/v0.1.0/schema.json @@ -14,14 +14,14 @@ "name": "social_event", "indexes": { "name": ["name"], - "startTime": ["start.date"], - "endTime": ["end.date"], + "startTime": ["start"], + "endTime": ["end"], "source": ["sourceApplication", "sourceId"] } }, "layouts": { - "create": ["name", "calendarId", "start.date", "end.date", "location"], - "view": ["name", "description", "calendarId", "start.date", "end.date", "location", "organizer", "attendees", "status"] + "create": ["name", "calendarId", "start", "end", "location"], + "view": ["name", "description", "calendarId", "start", "end", "location", "organizer", "attendees", "status"] }, "allOf": [ { @@ -142,7 +142,7 @@ } } }, - "required": ["calendarId", "start.date", "end.date"] + "required": ["calendarId", "start", "end"] } ], "$defs": { From db28a583ff052edb4d9118b53a21c3a2d98d6093 Mon Sep 17 00:00:00 2001 From: chime3 Date: Sun, 8 Sep 2024 18:31:40 -0700 Subject: [PATCH 2/4] fix: event schema date time --- social/event/v0.1.0/schema.json | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/social/event/v0.1.0/schema.json b/social/event/v0.1.0/schema.json index 34c2fce..153de73 100644 --- a/social/event/v0.1.0/schema.json +++ b/social/event/v0.1.0/schema.json @@ -14,13 +14,13 @@ "name": "social_event", "indexes": { "name": ["name"], - "startTime": ["start"], - "endTime": ["end"], + "startTime": ["start.dateTime"], + "endTime": ["end.dateTime"], "source": ["sourceApplication", "sourceId"] } }, "layouts": { - "create": ["name", "calendarId", "start", "end", "location"], + "create": ["name", "calendarId", "location"], "view": ["name", "description", "calendarId", "start", "end", "location", "organizer", "attendees", "status"] }, "allOf": [ @@ -68,15 +68,11 @@ "type": "string", "format": "date-time" }, - "date": { - "type": "string", - "format": "date" - }, "timezone": { "type": "string", "description": "UTC offset format", "pattern": "^([+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$", - "example": "+02:30" + "examples": ["+02:30"] } } }, @@ -89,15 +85,11 @@ "type": "string", "format": "date-time" }, - "date": { - "type": "string", - "format": "date" - }, "timezone": { "type": "string", "description": "UTC offset format", "pattern": "^([+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$", - "example": "+02:30" + "examples": ["+02:30"] } } }, @@ -142,7 +134,7 @@ } } }, - "required": ["calendarId", "start", "end"] + "required": ["calendarId", "start.dateTime", "end.dateTime"] } ], "$defs": { From 3ab7132974c13961c396b10a9db8081541eb82c2 Mon Sep 17 00:00:00 2001 From: chime3 Date: Sun, 8 Sep 2024 18:39:24 -0700 Subject: [PATCH 3/4] fix: made dateTime as required --- social/event/v0.1.0/schema.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/social/event/v0.1.0/schema.json b/social/event/v0.1.0/schema.json index 153de73..6cd2b4c 100644 --- a/social/event/v0.1.0/schema.json +++ b/social/event/v0.1.0/schema.json @@ -74,7 +74,8 @@ "pattern": "^([+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$", "examples": ["+02:30"] } - } + }, + "required": ["dateTime"] }, "end": { "title": "End", @@ -90,8 +91,9 @@ "description": "UTC offset format", "pattern": "^([+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$", "examples": ["+02:30"] - } - } + } + }, + "required": ["dateTime"] }, "attendees": { "title": "Attendees", @@ -134,7 +136,7 @@ } } }, - "required": ["calendarId", "start.dateTime", "end.dateTime"] + "required": ["calendarId"] } ], "$defs": { From a6ce33ca15c73bbfe06667103712fc28d8279f29 Mon Sep 17 00:00:00 2001 From: chime3 Date: Sun, 8 Sep 2024 20:44:34 -0700 Subject: [PATCH 4/4] fix: added required field --- social/event/v0.1.0/schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/social/event/v0.1.0/schema.json b/social/event/v0.1.0/schema.json index 6cd2b4c..5b3a4e8 100644 --- a/social/event/v0.1.0/schema.json +++ b/social/event/v0.1.0/schema.json @@ -28,6 +28,7 @@ "$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json" }, { + "type": "object", "properties": { "status": { "title": "Status", @@ -136,7 +137,7 @@ } } }, - "required": ["calendarId"] + "required": ["calendarId", "start"] } ], "$defs": {