From c72441a74ef063c91a7214cd94168360b04bcc4c Mon Sep 17 00:00:00 2001 From: Matt Schnee Date: Fri, 7 Feb 2020 18:10:06 -0500 Subject: [PATCH] docs: fix typos --- docs/site/decorators/Decorators_openapi.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/site/decorators/Decorators_openapi.md b/docs/site/decorators/Decorators_openapi.md index e2f2c88e204e..ca422729e378 100644 --- a/docs/site/decorators/Decorators_openapi.md +++ b/docs/site/decorators/Decorators_openapi.md @@ -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() { @@ -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() { @@ -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: { @@ -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': { @@ -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!'};