Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions smithy/model/storage.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ operation ListBuckets {
errors: [StorageError]
}

/// NOTE: the API returns a bare JSON array — there is no {items:[]} envelope.
/// Verified against a live platform (supabase start). restJson1 cannot bind a
/// list to the HTTP payload (@httpPayload supports string/blob/structure/union/
/// document only), so patch-openapi.py unwraps this envelope in the generated
/// OpenAPI. Applies to all *Output structures holding a single `items` list.
structure ListBucketsOutput {
@required
items: BucketList
Expand Down
81 changes: 22 additions & 59 deletions smithy/openapi/DatabaseService.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/CallRpcGetOutputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand All @@ -78,7 +79,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/CallRpcPostInputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand Down Expand Up @@ -129,7 +131,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/CallRpcPostOutputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand Down Expand Up @@ -205,7 +208,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/DeleteRowsOutputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand Down Expand Up @@ -339,7 +343,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/SelectRowsOutputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand All @@ -362,7 +367,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/UpdateRowsInputPayload"
"type": "string",
"format": "binary"
}
}
},
Expand Down Expand Up @@ -423,7 +429,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/UpdateRowsOutputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand All @@ -446,7 +453,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/InsertRowsInputPayload"
"type": "string",
"format": "binary"
}
}
},
Expand Down Expand Up @@ -513,7 +521,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/InsertRowsOutputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand All @@ -536,7 +545,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/UpsertRowsInputPayload"
"type": "string",
"format": "binary"
}
}
},
Expand Down Expand Up @@ -608,7 +618,8 @@
"content": {
"application/octet-stream": {
"schema": {
"$ref": "#/components/schemas/UpsertRowsOutputPayload"
"type": "string",
"format": "binary"
}
}
}
Expand All @@ -629,19 +640,6 @@
},
"components": {
"schemas": {
"CallRpcGetOutputPayload": {
"type": "string",
"format": "byte"
},
"CallRpcPostInputPayload": {
"type": "string",
"description": "Named parameters as a JSON object, or a single argument when combined\nwith Prefer: params=single-object.",
"format": "byte"
},
"CallRpcPostOutputPayload": {
"type": "string",
"format": "byte"
},
"DatabaseErrorResponseContent": {
"type": "object",
"properties": {
Expand All @@ -663,48 +661,13 @@
}
}
},
"DeleteRowsOutputPayload": {
"type": "string",
"format": "byte"
},
"InsertRowsInputPayload": {
"type": "string",
"description": "JSON object or array of objects to insert.",
"format": "byte"
},
"InsertRowsOutputPayload": {
"type": "string",
"format": "byte"
},
"SelectRowsOutputPayload": {
"type": "string",
"format": "byte"
},
"StringMap": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Generic string-to-string map \u2014 used for arbitrary query parameter collections\n(e.g. PostgREST filter params, RPC GET arguments)."
},
"UpdateRowsInputPayload": {
"type": "string",
"description": "Partial JSON object with fields to update.",
"format": "byte"
},
"UpdateRowsOutputPayload": {
"type": "string",
"format": "byte"
},
"UpsertRowsInputPayload": {
"type": "string",
"description": "JSON object or array of objects to upsert.",
"format": "byte"
},
"UpsertRowsOutputPayload": {
"type": "string",
"format": "byte"
},
"FilterOperator": {
"type": "string",
"description": "PostgREST column filter operators. Format a filter value as \"{operator}.{value}\", e.g. \"eq.5\". Prefix with \"not.\" to negate: \"not.eq.5\". For logical grouping use keys \"or\" / \"and\" in the filters map.",
Expand Down
Loading