From 45a93ee97e7468447b39197c655bf098acc9ef27 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Mon, 30 Jan 2023 08:42:43 +0100 Subject: [PATCH] relationships are a list --- src/locations/room.jsonnet | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/locations/room.jsonnet b/src/locations/room.jsonnet index 44d1e8b..34304a3 100644 --- a/src/locations/room.jsonnet +++ b/src/locations/room.jsonnet @@ -12,13 +12,16 @@ entity properties+: { location: types.location, relationships: { - type: 'object', - description: 'Relationships that bind other entities to this room.', - properties: { - id: types.id, - args: { - type: 'array', - items: types.id, + type: 'array', + items: { + type: 'object', + description: 'Relationships that bind other entities to this room.', + properties: { + id: types.id, + args: { + type: 'array', + items: types.id, + }, }, }, },