feat(clients): integrate plan 18: API catalog for 83 Google services, key table, detail error envelope, docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ TEST(api_catalog, services_unique_and_well_formed) {
|
||||
ASSERT_FALSE(api.title.empty());
|
||||
ASSERT_FALSE(api.used_by.empty());
|
||||
}
|
||||
ASSERT_TRUE(apis::all().size() >= 12u);
|
||||
ASSERT_TRUE(apis::all().size() >= 80u);
|
||||
}
|
||||
|
||||
TEST(api_catalog, enable_url_matches_google_activation_page) {
|
||||
|
||||
@@ -84,6 +84,8 @@ TEST(llm, error_envelopes) {
|
||||
{"{\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"nope\"}}", 404, "not_found_error", "nope"},
|
||||
{"{\"error\":{\"code\":\"rate_limit_exceeded\",\"message\":\"slow\"}}", 429, "rate_limit_exceeded", "slow"},
|
||||
{"{\"error\":\"plain text error\"}", 400, "UNKNOWN", "plain text error"},
|
||||
{"{\"detail\":\"Invalid API Key\"}", 401, "UNKNOWN", "Invalid API Key"},
|
||||
{"{\"detail\":[{\"msg\":\"field required\"}]}", 422, "UNKNOWN", "field required"},
|
||||
{"{\"message\":\"top level\",\"code\":\"E42\"}", 400, "E42", "top level"},
|
||||
{"<html>bad gateway</html>", 400, "UNKNOWN", "HTTP 400"},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user