Skip to content

Commit

Permalink
feat: add response with array of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Oct 25, 2021
1 parent 89b6cf5 commit e4fc16e
Show file tree
Hide file tree
Showing 14 changed files with 347 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ _bin/*
*-fuzz.zip

*.out
*.dump
32 changes: 32 additions & 0 deletions _testdata/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,38 @@
}
}
},
"/pet/friendNames/{id}": {
"get": {
"description": "Returns names of all friends of pet",
"operationId": "petFriendsNamesByID",
"parameters": [
{
"name": "id",
"in": "path",
"description": "pet ID",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Names of all friends",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"/pet": {
"get": {
"description": "Returns pet from the system that the user has access to",
Expand Down
Loading

0 comments on commit e4fc16e

Please sign in to comment.