Skip to content

Commit

Permalink
Fix JSON media type example
Browse files Browse the repository at this point in the history
Co-Author: Florian Loitsch <florian@loitsch.com>

Fix contributed by Florian Loitsch, ported to 3.1.1.md file.
  • Loading branch information
handrews committed Feb 15, 2024
1 parent 03b43e1 commit 129fa2f
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions versions/3.1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -1390,29 +1390,28 @@ This object MAY be extended with [Specification Extensions](#specificationExtens
"$ref": "#/components/schemas/Pet"
},
"examples": {
"cat" : {
"cat": {
"summary": "An example of a cat",
"value":
{
"name": "Fluffy",
"petType": "Cat",
"color": "White",
"gender": "male",
"breed": "Persian"
}
"value": {
"name": "Fluffy",
"petType": "Cat",
"color": "White",
"gender": "male",
"breed": "Persian"
}
},
"dog": {
"summary": "An example of a dog with a cat's name",
"value" : {
"value": {
"name": "Puma",
"petType": "Dog",
"color": "Black",
"gender": "Female",
"breed": "Mixed"
},
"frog": {
"$ref": "#/components/examples/frog-example"
}
},
"frog": {
"$ref": "#/components/examples/frog-example"
}
}
}
Expand Down

0 comments on commit 129fa2f

Please sign in to comment.