diff --git a/openapi/swagger.json b/openapi/swagger.json index 294cbb2..77791fd 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -391,6 +391,48 @@ ], "additionalProperties": false }, + { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "relation" + ] + }, + "columnID": { + "type": "string" + }, + "matchMultiple": { + "type": "boolean", + "description": "If true, the relation will match multiple rows in the target table" + }, + "target": { + "type": "object", + "properties": { + "tableID": { + "type": "string", + "description": "ID of the table, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`", + "example": "2a1bad8b-cf7c-44437-b8c1-e3782df6" + }, + "columnID": { + "type": "string" + } + }, + "required": [ + "tableID", + "columnID" + ], + "additionalProperties": false + } + }, + "required": [ + "kind", + "columnID", + "target" + ], + "additionalProperties": false + }, { "type": "object", "properties": { @@ -867,6 +909,48 @@ ], "additionalProperties": false }, + { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "relation" + ] + }, + "columnID": { + "type": "string" + }, + "matchMultiple": { + "type": "boolean", + "description": "If true, the relation will match multiple rows in the target table" + }, + "target": { + "type": "object", + "properties": { + "tableID": { + "type": "string", + "description": "ID of the table, e.g., `2a1bad8b-cf7c-44437-b8c1-e3782df6`", + "example": "2a1bad8b-cf7c-44437-b8c1-e3782df6" + }, + "columnID": { + "type": "string" + } + }, + "required": [ + "tableID", + "columnID" + ], + "additionalProperties": false + } + }, + "required": [ + "kind", + "columnID", + "target" + ], + "additionalProperties": false + }, { "type": "object", "properties": {