Skip to content

Commit

Permalink
docs: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mschnee committed Feb 7, 2020
1 parent c1dfdae commit c72441a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/site/decorators/Decorators_openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ class GenericError extends Model {
}

class MyController {
@oas.get('/greet',
@oas.get('/greet')
@oas.response(200, SuccessModel)
@oas.response(500, GenericError)
greet() {
Expand Down Expand Up @@ -634,7 +634,7 @@ class BazNotFound extends Model {
}

class MyController {
@oas.get('/greet/{foo}/{bar}',
@oas.get('/greet/{foo}/{bar}')
@oas.response(404, FooNotFound, BarNotFound)
@oas.response(404, BazNotFound)
greet() {
Expand Down Expand Up @@ -673,13 +673,13 @@ class MyController {
#### Using ReferenceObject, ResponseObjects, ContentObjects

You don't have to use loopback `Models` to use this convenience decorator. Valid
ReferenceObjects, ContenObjects, and ResponseObjects are also valid.
`ReferenceObjects`, `ContentObjects`, and `ResponseObjects` are also valid.

```ts
class MyController {

// this is a valid SchemaObject
@oas.get('/schema-object',
@oas.get('/schema-object')
@oas.response(200, {
type: 'object',
properties: {
Expand All @@ -692,7 +692,7 @@ class MyController {
}

// this is a valid ResponseObject
@oas.get('/response-object',
@oas.get('/response-object')
@oas.response(200, {
content: {
'application/pdf': {
Expand All @@ -708,7 +708,7 @@ class MyController {
}

// this is a valid ResponseObject
@oas.get('/reference-object',
@oas.get('/reference-object')
@oas.response(200, { $ref: '#/path/to/schema' })
returnFromResponseObject() {
return {message: 'Hello, world!'};
Expand Down

0 comments on commit c72441a

Please sign in to comment.