feat: add support for operationId in docstring; feat: v1.120.6

This commit is contained in:
Georg K
2022-11-11 10:02:27 +03:00
parent 83739c7c8e
commit ba0530d6b1
4 changed files with 28 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ class PetCollectionView(PydanticView):
Tags: pet
Status Codes:
200: Successful operation
OperationId: createPet
"""
return web.json_response()
@@ -147,6 +148,7 @@ async def test_generated_oas_should_have_pets_paths(generated_oas):
async def test_pets_route_should_have_get_method(generated_oas):
assert generated_oas["paths"]["/pets"]["get"] == {
"description": "Get a list of pets",
"operationId": "createPet",
"tags": ["pet"],
"parameters": [
{