Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

update storage spec

Inian97a056fe9ee6
diff --git a/spec/storage_v0_openapi.json b/spec/storage_v0_openapi.json
index 0d87af1ff92..452022e16a8 100644
--- a/spec/storage_v0_openapi.json
+++ b/spec/storage_v0_openapi.json
@@ -9,7 +9,12 @@
"schemas": {
"def-0": {
"type": "object",
- "properties": { "authorization": { "type": "string" } },
+ "properties": {
+ "authorization": {
+ "type": "string",
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
+ }
+ },
"required": ["authorization"],
"title": "authSchema"
},
@@ -51,7 +56,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -86,7 +92,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -167,7 +174,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -212,7 +220,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -279,7 +288,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -323,7 +333,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -375,7 +386,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -426,7 +438,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -460,7 +473,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -511,7 +525,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -576,7 +591,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -676,7 +692,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -728,7 +745,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -837,7 +855,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -903,7 +922,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -971,7 +991,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -1072,7 +1093,8 @@
"in": "header",
"name": "authorization",
"required": true,
- "schema": { "type": "string" }
+ "schema": { "type": "string" },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
diff --git a/spec/transforms/storage_v0_openapi_deparsed.json b/spec/transforms/storage_v0_openapi_deparsed.json
index 80e308587e0..9b0e008c5f1 100644
--- a/spec/transforms/storage_v0_openapi_deparsed.json
+++ b/spec/transforms/storage_v0_openapi_deparsed.json
@@ -11,7 +11,8 @@
"type": "object",
"properties": {
"authorization": {
- "type": "string"
+ "type": "string",
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
},
"required": [
@@ -82,7 +83,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -148,7 +150,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -271,7 +274,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -346,7 +350,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -457,7 +462,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -533,7 +539,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -618,7 +625,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -702,7 +710,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -767,7 +776,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -853,7 +863,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -957,7 +968,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -1153,7 +1165,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -1241,7 +1254,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -1419,7 +1433,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -1535,7 +1550,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -1667,7 +1683,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
@@ -1871,7 +1888,8 @@
"required": true,
"schema": {
"type": "string"
- }
+ },
+ "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {