Skip to content

Commit

Permalink
docs: clarify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
matt committed Jan 31, 2020
1 parent 9a618ed commit 9ba74ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/site/decorators/Decorators_openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class MyController {

This namespace contains decorators that are specific to the OpenAPI
specification, but are also similar to other well-known decorators available,
such as `@oas.deprecated()`
such as `@deprecated()`

### @oas.deprecated

Expand Down
5 changes: 2 additions & 3 deletions packages/openapi-v3/src/decorators/deprecated.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,22 @@ const debug = require('debug')(
*
* @example
* ```ts
* @deprecated()
* @oas.deprecated()
* class MyController {
* @get('/greet')
* public async function greet() {
* return 'Hello, World!'
* }
*
* @get('/greet-v2')
* @deprecated(false)
* @oas.deprecated(false)
* public async function greetV2() {
* return 'Hello, World!'
* }
* }
*
* class MyOtherController {
* @get('/echo')
* @deprecated()
* public async function echo() {
* return 'Echo!'
* }
Expand Down

0 comments on commit 9ba74ed

Please sign in to comment.