Added OpenAPI examples
This commit is contained in:
parent
c31b062a6b
commit
31425db152
2 changed files with 178 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue