Skip to content

Commit

Permalink
fix: add readme.com extension for showing "Bearer" in auth
Browse files Browse the repository at this point in the history
As `grpc-gateway` only supports OpenAPI 2.x, we were relying on the
field description to specify `Bearer` is part of the API key.
  • Loading branch information
jvallesm committed Feb 29, 2024
1 parent ef8c929 commit 9c0daec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/openapi/v1beta/api_config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
in: IN_HEADER;
name: "Authorization";
description: "Enter the token with the `Bearer ` prefix, e.g. `Bearer abcde12345`";
extensions: {
key: "x-default";
value {string_value: "Bearer instill_sk_***"}
}
}
}
}
Expand Down

0 comments on commit 9c0daec

Please sign in to comment.