generated from coulomb/repo-seed
Added OpenAPI examples
This commit is contained in:
@@ -32,6 +32,16 @@ def test_openapi_groups_agent_facing_endpoints():
|
||||
"get"
|
||||
]["responses"]["200"]["content"]["application/json"]["schema"]
|
||||
assert ability_map_response["$ref"].endswith("/RepositoryAbilityMapResponse")
|
||||
components = schema["components"]["schemas"]
|
||||
assert components["SearchResultResponse"]["examples"][0]["match_type"] == (
|
||||
"capability"
|
||||
)
|
||||
assert components["RepositoryAbilityMapResponse"]["examples"][0]["abilities"][0][
|
||||
"confidence_label"
|
||||
] == "high"
|
||||
assert components["CandidateGraphResponse"]["examples"][0]["abilities"][0][
|
||||
"status"
|
||||
] == "pending"
|
||||
|
||||
|
||||
def test_api_manual_registry_loop(tmp_path):
|
||||
|
||||
Reference in New Issue
Block a user