From 207286f2b8b91fe25328cc1366da9d50ee3632e8 Mon Sep 17 00:00:00 2001 From: Stas Kelvich Date: Fri, 18 Feb 2022 16:17:42 +0300 Subject: [PATCH] Actualize branching parts of openapi spec. Previous version of spec caused parsing errors in generated clients as return type is object not array, also one field was missing. In a passing set `format: hex` on ancestor_id too as value conforms to that format. --- pageserver/src/http/openapi_spec.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pageserver/src/http/openapi_spec.yml b/pageserver/src/http/openapi_spec.yml index f11bae5be2..dcb81849e0 100644 --- a/pageserver/src/http/openapi_spec.yml +++ b/pageserver/src/http/openapi_spec.yml @@ -234,9 +234,7 @@ paths: content: application/json: schema: - type: array - items: - $ref: "#/components/schemas/BranchInfo" + $ref: "#/components/schemas/BranchInfo" "400": description: Malformed branch create request content: @@ -370,12 +368,15 @@ components: format: hex ancestor_id: type: string + format: hex ancestor_lsn: type: string current_logical_size: type: integer current_logical_size_non_incremental: type: integer + latest_valid_lsn: + type: integer TimelineInfo: type: object required: