From 695673ff6356e5626e7945c24df65d2e30e26227 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Thu, 5 Jul 2018 11:57:28 +0200 Subject: [PATCH] complex fields --- sam/docs/src/spec.json | 6 +++--- sam/docs/src/spec/team.json | 2 ++ sam/docs/src/spec/websocket.json | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sam/docs/src/spec.json b/sam/docs/src/spec.json index 43ff86693..1942667df 100644 --- a/sam/docs/src/spec.json +++ b/sam/docs/src/spec.json @@ -72,8 +72,8 @@ "struct": [ { "type": "uint64", "name": "ID" }, { "type": "string", "name": "Name" }, - { "type": "[]uint64", "name": "MemberIDs", "tag": "json:\"-\"" }, - { "type": "[]User", "name": "Members", "tag": "json:\",omitempty\"" } + { "type": "[]uint64", "name": "MemberIDs", "tag": "json:\"-\"", "complex": true }, + { "type": "[]User", "name": "Members", "tag": "json:\",omitempty\"", "complex": true } ], "apis": [ { @@ -369,7 +369,7 @@ "authentication": ["Client ID", "Session ID"], "struct": [ { "type": "uint64", "name": "UserID" }, - { "type": "User", "name": "User" } + { "type": "User", "name": "User", "complex": true } ], "apis": [ { diff --git a/sam/docs/src/spec/team.json b/sam/docs/src/spec/team.json index f92623d1d..023fd6e9e 100644 --- a/sam/docs/src/spec/team.json +++ b/sam/docs/src/spec/team.json @@ -13,11 +13,13 @@ "type": "string" }, { + "complex": true, "name": "MemberIDs", "tag": "json:\"-\"", "type": "[]uint64" }, { + "complex": true, "name": "Members", "tag": "json:\",omitempty\"", "type": "[]User" diff --git a/sam/docs/src/spec/websocket.json b/sam/docs/src/spec/websocket.json index edcdc5967..bc3d1c68b 100644 --- a/sam/docs/src/spec/websocket.json +++ b/sam/docs/src/spec/websocket.json @@ -8,6 +8,7 @@ "type": "uint64" }, { + "complex": true, "name": "User", "type": "User" }