From 9e898fbe547df0109a876f73967afe13ebe247d3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:40:06 +0000 Subject: [PATCH 1/8] Update from https://github.com/glideapps/glide/commit/be7d3acd5d4691affaa4cea8aa83e6d31c4768d5 --- openapi/swagger.json | 502 ++++++++++++++++++++++++++++--------------- 1 file changed, 330 insertions(+), 172 deletions(-) diff --git a/openapi/swagger.json b/openapi/swagger.json index 292dcc6..bd1ebb3 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -215,8 +215,17 @@ } } }, - "description": "Creates a new Big Table", "parameters": [ + { + "name": "name", + "in": "query", + "schema": { + "type": "string", + "description": "Name of the table. Required when the name is not passed in the request body. It is an error to pass a name in both this query parameter and the request body.", + "example": "Invoices" + }, + "required": false + }, { "name": "onSchemaError", "in": "query", @@ -237,47 +246,36 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of the table, e.g., `Invoices`", - "example": "Invoices" - }, - "schema": { + "anyOf": [ + { "type": "object", "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", - "example": "fullName" - }, - "displayName": { - "type": "string", - "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", - "example": "Full Name" - }, - "type": { - "anyOf": [ - { + "name": { + "type": "string", + "description": "Name of the table, e.g., `Invoices`", + "example": "Invoices" + }, + "schema": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "string", - "enum": [ - "string", - "number", - "boolean", - "uri", - "dateTime" - ] + "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", + "example": "fullName" }, - { - "type": "object", - "properties": { - "kind": { + "displayName": { + "type": "string", + "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", + "example": "Full Name" + }, + "type": { + "anyOf": [ + { "type": "string", "enum": [ "string", @@ -286,57 +284,120 @@ "uri", "dateTime" ] + }, + { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "string", + "number", + "boolean", + "uri", + "dateTime" + ] + } + }, + "required": [ + "kind" + ], + "additionalProperties": false } - }, - "required": [ - "kind" ], - "additionalProperties": false + "description": "The type of the column" } + }, + "required": [ + "id", + "type" ], - "description": "The type of the column" + "additionalProperties": false + }, + "description": "A collection of column definitions, in the order that they are to be displayed in the table" + } + }, + "required": [ + "columns" + ], + "additionalProperties": false, + "description": "The schema of the table as a collection of column definitions", + "example": { + "columns": [ + { + "id": "fullName", + "displayName": "Full Name", + "type": "string" + }, + { + "id": "invoiceDate", + "displayName": "Invoice Date", + "type": "dateTime" + }, + { + "id": "totalAmount", + "displayName": "Total", + "type": "number" + }, + { + "id": "amountPaid", + "displayName": "Paid", + "type": "number" } + ] + } + }, + "rows": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + }, + "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", + "example": [ + { + "fullName": "Alex Bard", + "invoiceDate": "2024-07-29T14:04:15.561Z", + "totalAmount": 34.5, + "amountPaid": 0 + }, + { + "fullName": "Alicia Hines", + "invoiceDate": "2023-06-15T10:30:00.000Z", + "totalAmount": 50.75, + "amountPaid": 20 + } + ] }, - "required": [ - "id", - "type" - ], - "additionalProperties": false - }, - "description": "A collection of column definitions, in the order that they are to be displayed in the table" + { + "type": "object", + "properties": { + "$stashID": { + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", + "description": "ID of the stash, e.g., `20240215-job32`", + "example": "20240215-job32" + } + }, + "required": [ + "$stashID" + ], + "additionalProperties": false, + "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used" + } + ] } }, "required": [ - "columns" + "name", + "schema", + "rows" ], - "additionalProperties": false, - "description": "The schema of the table as a collection of column definitions", - "example": { - "columns": [ - { - "id": "fullName", - "displayName": "Full Name", - "type": "string" - }, - { - "id": "invoiceDate", - "displayName": "Invoice Date", - "type": "dateTime" - }, - { - "id": "totalAmount", - "displayName": "Total", - "type": "number" - }, - { - "id": "amountPaid", - "displayName": "Paid", - "type": "number" - } - ] - } + "additionalProperties": false }, - "rows": { + { "anyOf": [ { "type": "array", @@ -378,17 +439,26 @@ } ] } - }, - "required": [ - "name", - "schema", - "rows" - ], - "additionalProperties": false + ] + } + }, + "text/csv": { + "schema": { + "type": "string", + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" + } + }, + "text/tab-separated-values": { + "schema": { + "type": "string", + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" } } } - } + }, + "description": "Creates a new Big Table" } }, "/tables/{tableID}": { @@ -537,7 +607,6 @@ } } }, - "description": "Overwrites a Big Table with new schema and/or data", "parameters": [ { "name": "tableID", @@ -569,42 +638,31 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "schema": { + "anyOf": [ + { "type": "object", "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", - "example": "fullName" - }, - "displayName": { - "type": "string", - "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", - "example": "Full Name" - }, - "type": { - "anyOf": [ - { + "schema": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Internal ID of the column, e.g., `fullName`. This value cannot be changed once created.", + "example": "fullName" + }, + "displayName": { "type": "string", - "enum": [ - "string", - "number", - "boolean", - "uri", - "dateTime" - ] + "description": "Human-readable display name of the column, e.g., `Full Name`. Can be modified once created.", + "example": "Full Name" }, - { - "type": "object", - "properties": { - "kind": { + "type": { + "anyOf": [ + { "type": "string", "enum": [ "string", @@ -613,57 +671,119 @@ "uri", "dateTime" ] + }, + { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "string", + "number", + "boolean", + "uri", + "dateTime" + ] + } + }, + "required": [ + "kind" + ], + "additionalProperties": false } - }, - "required": [ - "kind" ], - "additionalProperties": false + "description": "The type of the column" } + }, + "required": [ + "id", + "type" ], - "description": "The type of the column" + "additionalProperties": false + }, + "description": "A collection of column definitions, in the order that they are to be displayed in the table" + } + }, + "required": [ + "columns" + ], + "additionalProperties": false, + "description": "The schema of the table as a collection of column definitions", + "example": { + "columns": [ + { + "id": "fullName", + "displayName": "Full Name", + "type": "string" + }, + { + "id": "invoiceDate", + "displayName": "Invoice Date", + "type": "dateTime" + }, + { + "id": "totalAmount", + "displayName": "Total", + "type": "number" + }, + { + "id": "amountPaid", + "displayName": "Paid", + "type": "number" } + ] + } + }, + "rows": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + }, + "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", + "example": [ + { + "fullName": "Alex Bard", + "invoiceDate": "2024-07-29T14:04:15.561Z", + "totalAmount": 34.5, + "amountPaid": 0 + }, + { + "fullName": "Alicia Hines", + "invoiceDate": "2023-06-15T10:30:00.000Z", + "totalAmount": 50.75, + "amountPaid": 20 + } + ] }, - "required": [ - "id", - "type" - ], - "additionalProperties": false - }, - "description": "A collection of column definitions, in the order that they are to be displayed in the table" + { + "type": "object", + "properties": { + "$stashID": { + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", + "description": "ID of the stash, e.g., `20240215-job32`", + "example": "20240215-job32" + } + }, + "required": [ + "$stashID" + ], + "additionalProperties": false, + "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used" + } + ] } }, "required": [ - "columns" + "schema", + "rows" ], - "additionalProperties": false, - "description": "The schema of the table as a collection of column definitions", - "example": { - "columns": [ - { - "id": "fullName", - "displayName": "Full Name", - "type": "string" - }, - { - "id": "invoiceDate", - "displayName": "Invoice Date", - "type": "dateTime" - }, - { - "id": "totalAmount", - "displayName": "Total", - "type": "number" - }, - { - "id": "amountPaid", - "displayName": "Paid", - "type": "number" - } - ] - } + "additionalProperties": false }, - "rows": { + { "anyOf": [ { "type": "array", @@ -705,16 +825,26 @@ } ] } - }, - "required": [ - "schema", - "rows" - ], - "additionalProperties": false + ] + } + }, + "text/csv": { + "schema": { + "type": "string", + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" + } + }, + "text/tab-separated-values": { + "schema": { + "type": "string", + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" } } } - } + }, + "description": "Replaces the schema and/or data of a Big Table" } }, "/tables/{tableID}/rows": { @@ -862,7 +992,6 @@ } } }, - "description": "Adds rows to a Big Table", "parameters": [ { "name": "tableID", @@ -935,9 +1064,24 @@ } ] } + }, + "text/csv": { + "schema": { + "type": "string", + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" + } + }, + "text/tab-separated-values": { + "schema": { + "type": "string", + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" + } } } - } + }, + "description": "Adds rows to a Big Table" } }, "/stashes/{stashID}/{serial}": { @@ -989,7 +1133,6 @@ } } }, - "description": "Sets the content of a chunk of data inside a stash", "parameters": [ { "name": "stashID", @@ -1039,9 +1182,24 @@ } ] } + }, + "text/csv": { + "schema": { + "type": "string", + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" + } + }, + "text/tab-separated-values": { + "schema": { + "type": "string", + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" + } } } - } + }, + "description": "Sets the content of a chunk of data inside a stash" } }, "/stashes/{stashID}": { @@ -1093,7 +1251,6 @@ } } }, - "description": "Deletes a stash and all its data", "parameters": [ { "name": "stashID", @@ -1106,7 +1263,8 @@ }, "required": true } - ] + ], + "description": "Deletes a stash and all its data" } } }, From d8c44c8ec27670a4b9f413d2d9abd33d80ed9282 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:53:35 +0000 Subject: [PATCH 2/8] Update from https://github.com/glideapps/glide/commit/32c3903c1cb6b8ecdaa0844e0bffd8b0b949441e --- openapi/swagger.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/openapi/swagger.json b/openapi/swagger.json index bd1ebb3..c3e140e 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -449,6 +449,20 @@ "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" } }, + "text/tab-separated-values": { + "schema": { + "type": "string", + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" + } + }, + "text/csv": { + "schema": { + "type": "string", + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" + } + }, "text/tab-separated-values": { "schema": { "type": "string", @@ -835,6 +849,20 @@ "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" } }, + "text/tab-separated-values": { + "schema": { + "type": "string", + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" + } + }, + "text/csv": { + "schema": { + "type": "string", + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" + } + }, "text/tab-separated-values": { "schema": { "type": "string", From 233a5e192d15f41f08d84a87c5bd8128effd4e60 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:01:05 +0000 Subject: [PATCH 3/8] Update from https://github.com/glideapps/glide/commit/cad67acfb1982c30f7e5672c4d0d8dd3acd95680 --- openapi/swagger.json | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/openapi/swagger.json b/openapi/swagger.json index c3e140e..bd1ebb3 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -449,20 +449,6 @@ "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" } }, - "text/tab-separated-values": { - "schema": { - "type": "string", - "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", - "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" - } - }, - "text/csv": { - "schema": { - "type": "string", - "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", - "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" - } - }, "text/tab-separated-values": { "schema": { "type": "string", @@ -849,20 +835,6 @@ "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" } }, - "text/tab-separated-values": { - "schema": { - "type": "string", - "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", - "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" - } - }, - "text/csv": { - "schema": { - "type": "string", - "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", - "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" - } - }, "text/tab-separated-values": { "schema": { "type": "string", From f484fdee924d93c1d4a7d18f3cd46fcec3463a6d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:56:38 +0000 Subject: [PATCH 4/8] Update from https://github.com/glideapps/glide/commit/a89098ab5f0ac5412033560bb2b3cf6b37e8d878 --- openapi/swagger.json | 153 ++++++++----------------------------------- 1 file changed, 29 insertions(+), 124 deletions(-) diff --git a/openapi/swagger.json b/openapi/swagger.json index bd1ebb3..b032d53 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -5,7 +5,30 @@ "version": "" }, "components": { - "schemas": {}, + "schemas": { + "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + }, + "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", + "example": [ + { + "fullName": "Alex Bard", + "invoiceDate": "2024-07-29T14:04:15.561Z", + "totalAmount": 34.5, + "amountPaid": 0 + }, + { + "fullName": "Alicia Hines", + "invoiceDate": "2023-06-15T10:30:00.000Z", + "totalAmount": 50.75, + "amountPaid": 20 + } + ] + } + }, "responses": {}, "parameters": {}, "examples": {}, @@ -321,7 +344,7 @@ "columns" ], "additionalProperties": false, - "description": "The schema of the table as a collection of column definitions", + "description": "The schema of the table as a collection of column definitions If this is not provided, the schema will be inferred from the data.", "example": { "columns": [ { @@ -350,26 +373,7 @@ "rows": { "anyOf": [ { - "type": "array", - "items": { - "type": "object", - "additionalProperties": {} - }, - "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", - "example": [ - { - "fullName": "Alex Bard", - "invoiceDate": "2024-07-29T14:04:15.561Z", - "totalAmount": 34.5, - "amountPaid": 0 - }, - { - "fullName": "Alicia Hines", - "invoiceDate": "2023-06-15T10:30:00.000Z", - "totalAmount": 50.75, - "amountPaid": 20 - } - ] + "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" }, { "type": "object", @@ -392,52 +396,12 @@ }, "required": [ "name", - "schema", "rows" ], "additionalProperties": false }, { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "additionalProperties": {} - }, - "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", - "example": [ - { - "fullName": "Alex Bard", - "invoiceDate": "2024-07-29T14:04:15.561Z", - "totalAmount": 34.5, - "amountPaid": 0 - }, - { - "fullName": "Alicia Hines", - "invoiceDate": "2023-06-15T10:30:00.000Z", - "totalAmount": 50.75, - "amountPaid": 20 - } - ] - }, - { - "type": "object", - "properties": { - "$stashID": { - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", - "description": "ID of the stash, e.g., `20240215-job32`", - "example": "20240215-job32" - } - }, - "required": [ - "$stashID" - ], - "additionalProperties": false, - "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used" - } - ] + "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" } ] } @@ -737,26 +701,7 @@ "rows": { "anyOf": [ { - "type": "array", - "items": { - "type": "object", - "additionalProperties": {} - }, - "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", - "example": [ - { - "fullName": "Alex Bard", - "invoiceDate": "2024-07-29T14:04:15.561Z", - "totalAmount": 34.5, - "amountPaid": 0 - }, - { - "fullName": "Alicia Hines", - "invoiceDate": "2023-06-15T10:30:00.000Z", - "totalAmount": 50.75, - "amountPaid": 20 - } - ] + "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" }, { "type": "object", @@ -778,52 +723,12 @@ } }, "required": [ - "schema", "rows" ], "additionalProperties": false }, { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "additionalProperties": {} - }, - "description": "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```", - "example": [ - { - "fullName": "Alex Bard", - "invoiceDate": "2024-07-29T14:04:15.561Z", - "totalAmount": 34.5, - "amountPaid": 0 - }, - { - "fullName": "Alicia Hines", - "invoiceDate": "2023-06-15T10:30:00.000Z", - "totalAmount": 50.75, - "amountPaid": 20 - } - ] - }, - { - "type": "object", - "properties": { - "$stashID": { - "type": "string", - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,255}$", - "description": "ID of the stash, e.g., `20240215-job32`", - "example": "20240215-job32" - } - }, - "required": [ - "$stashID" - ], - "additionalProperties": false, - "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used" - } - ] + "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" } ] } From 71026ae58fb30b9f3f4b3d22e0157391fc09c832 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 10:45:56 +0000 Subject: [PATCH 5/8] Update from https://github.com/glideapps/glide/commit/5ed18f08cbdf738af16fa527df06a0509617de3a --- openapi/swagger.json | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/openapi/swagger.json b/openapi/swagger.json index 146b345..308e973 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -6,7 +6,7 @@ }, "components": { "schemas": { - "A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```": { + "A_collection_of_row_objects": { "type": "array", "items": { "type": "object", @@ -373,7 +373,7 @@ "rows": { "anyOf": [ { - "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" + "$ref": "#/components/schemas/A_collection_of_row_objects" }, { "type": "object", @@ -401,7 +401,7 @@ "additionalProperties": false }, { - "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" + "$ref": "#/components/schemas/A_collection_of_row_objects" } ] } @@ -413,20 +413,6 @@ "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" } }, - "text/tab-separated-values": { - "schema": { - "type": "string", - "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", - "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" - } - }, - "text/csv": { - "schema": { - "type": "string", - "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", - "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" - } - }, "text/tab-separated-values": { "schema": { "type": "string", @@ -715,7 +701,7 @@ "rows": { "anyOf": [ { - "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" + "$ref": "#/components/schemas/A_collection_of_row_objects" }, { "type": "object", @@ -742,7 +728,7 @@ "additionalProperties": false }, { - "$ref": "#/components/schemas/A collection of row objects conforming to the schema of the table where keys are the column IDs and values are the column values:\n\n```json\n[\n\t{\n\t\t\"fullName\": \"Alex Bard\",\n\t\t\"invoiceDate\": \"2024-07-29T14:04:15.561Z\",\n\t\t\"totalAmount\": 34.50,\n\t\t\"amountPaid\": 0\n\t},\n\t{\n\t\t\"fullName\": \"Alicia Hines\",\n\t\t\"invoiceDate\": \"2023-06-15T10:30:00.000Z\",\n\t\t\"totalAmount\": 50.75,\n\t\t\"amountPaid\": 20\n\t}\n]\n```" + "$ref": "#/components/schemas/A_collection_of_row_objects" } ] } @@ -754,20 +740,6 @@ "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" } }, - "text/tab-separated-values": { - "schema": { - "type": "string", - "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", - "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" - } - }, - "text/csv": { - "schema": { - "type": "string", - "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", - "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" - } - }, "text/tab-separated-values": { "schema": { "type": "string", From 308edaed4f58f7bac810f565e8036b5aec41a2eb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:02:04 +0000 Subject: [PATCH 6/8] Update from https://github.com/glideapps/glide/commit/6dd720f916c5c5cb393b44d658cb125d5ebfb153 --- openapi/swagger.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/openapi/swagger.json b/openapi/swagger.json index 308e973..161186d 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -328,7 +328,7 @@ "additionalProperties": false } ], - "description": "The type of the column" + "description": "The type of the column." } }, "required": [ @@ -337,14 +337,14 @@ ], "additionalProperties": false }, - "description": "A collection of column definitions, in the order that they are to be displayed in the table" + "description": "A collection of column definitions, in the order that they are to be displayed in the table." } }, "required": [ "columns" ], "additionalProperties": false, - "description": "The schema of the table as a collection of column definitions If this is not provided, the schema will be inferred from the data.", + "description": "The schema of the table as a collection of column definitions. If this is not provided, the schema will be inferred from the data.", "example": { "columns": [ { @@ -389,7 +389,7 @@ "$stashID" ], "additionalProperties": false, - "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used" + "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used." } ] } @@ -656,7 +656,7 @@ "additionalProperties": false } ], - "description": "The type of the column" + "description": "The type of the column." } }, "required": [ @@ -665,14 +665,14 @@ ], "additionalProperties": false }, - "description": "A collection of column definitions, in the order that they are to be displayed in the table" + "description": "A collection of column definitions, in the order that they are to be displayed in the table." } }, "required": [ "columns" ], "additionalProperties": false, - "description": "The schema of the table as a collection of column definitions", + "description": "The schema of the table as a collection of column definitions.", "example": { "columns": [ { @@ -717,7 +717,7 @@ "$stashID" ], "additionalProperties": false, - "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used" + "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used." } ] } @@ -965,7 +965,7 @@ "$stashID" ], "additionalProperties": false, - "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used" + "description": "A single reference to a [stash](/api-reference/v2/stashing) whose data should be used." } ] } From a8f6196ca1ba9c2f51e13a317aebfb6f4a2c05bc Mon Sep 17 00:00:00 2001 From: Alex Corrado Date: Fri, 20 Sep 2024 22:20:25 +0100 Subject: [PATCH 7/8] Update changelog.mdx --- api-reference/v2/resources/changelog.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api-reference/v2/resources/changelog.mdx b/api-reference/v2/resources/changelog.mdx index 051622b..44d1247 100644 --- a/api-reference/v2/resources/changelog.mdx +++ b/api-reference/v2/resources/changelog.mdx @@ -3,6 +3,11 @@ title: Glide API Changelog sidebarTitle: Changelog --- +### September 23, 2024 + +- The `schema` field is now optional for the Create Table and Overwrite Table endpoints. +- The Create Table and Overwrite Table endpoints now additionally accept a bare JSON array of rows. + ### September 18, 2024 - Endpoints that receive tabular data can now accept CSV and TSV request bodies. From 9a57bf2aa76ed4f192500ab04a9dc5a448eda3e5 Mon Sep 17 00:00:00 2001 From: Alex Corrado Date: Wed, 2 Oct 2024 06:36:50 -0400 Subject: [PATCH 8/8] Bump release date in changelog --- api-reference/v2/resources/changelog.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-reference/v2/resources/changelog.mdx b/api-reference/v2/resources/changelog.mdx index 44d1247..3ec4e32 100644 --- a/api-reference/v2/resources/changelog.mdx +++ b/api-reference/v2/resources/changelog.mdx @@ -3,7 +3,7 @@ title: Glide API Changelog sidebarTitle: Changelog --- -### September 23, 2024 +### October 4, 2024 - The `schema` field is now optional for the Create Table and Overwrite Table endpoints. - The Create Table and Overwrite Table endpoints now additionally accept a bare JSON array of rows.