Skip to content

Commit

Permalink
Merge pull request #509 from open-rpc/fix/add-example-to-params-by-na…
Browse files Browse the repository at this point in the history
…me-list-pets

fix(petstore-by-name): add example to list_pets
  • Loading branch information
shanejonas authored Dec 11, 2020
2 parents 2cd734c + 8d4b770 commit 23d9d0b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion service-descriptions/params-by-name-petstore-openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,29 @@
"schema": {
"$ref": "#/components/schemas/Pets"
}
}
},
"examples": [
{
"name": "listPetExample",
"description": "List pet example",
"params": [
{
"name": "limit",
"value": 1
}
],
"result": {
"name": "listPetResultExample",
"value": [
{
"id": 7,
"name": "fluffy",
"tag": "poodle"
}
]
}
}
]
},
{
"name": "create_pet",
Expand Down

0 comments on commit 23d9d0b

Please sign in to comment.