Skip to content

Commit

Permalink
OpenAPITools#14141 Add externalDocs to @operation to the JavaSpring g…
Browse files Browse the repository at this point in the history
…enerator: regenerate the spring-boot-oas3.yaml sample
  • Loading branch information
arey committed Dec 5, 2022
1 parent f15dd2b commit 328114d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ default ResponseEntity<Pet> getPetById(
* or Invalid ID supplied (status code 400)
* or Pet not found (status code 404)
* or Validation exception (status code 405)
* API documentation for the updatePet operation
* @see <a href="http://petstore.swagger.io/v2/doc/updatePet">Update an existing pet Documentation</a>
*/
@Operation(
operationId = "updatePet",
Expand All @@ -308,7 +310,8 @@ default ResponseEntity<Pet> getPetById(
},
security = {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
}
},
externalDocs = @ExternalDocumentation(description = "API documentation for the updatePet operation", url = "http://petstore.swagger.io/v2/doc/updatePet")
)
@RequestMapping(
method = RequestMethod.PUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ paths:
- tag: pet
put:
description: ""
externalDocs:
description: API documentation for the updatePet operation
url: http://petstore.swagger.io/v2/doc/updatePet
operationId: updatePet
requestBody:
$ref: '#/components/requestBodies/Pet'
Expand Down

0 comments on commit 328114d

Please sign in to comment.