Skip to content

Commit 96b635a

Browse files
Chau TranChau Tran
authored andcommitted
docs(openapi): fix options
1 parent f23712b commit 96b635a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/openapi/cli-plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ export interface PluginOptions {
170170
<tr>
171171
<td><code>dtoKeyOfComment</code></td>
172172
<td><code>'description'</code></td>
173-
<td>The property key to set the comment text to on <code>ApiOperation</code>. Eg: <code>@ApiOperation({ description: 'comment' })</code></td>
173+
<td>The property key to set the comment text to on <code>ApiProperty</code>.</td>
174174
</tr>
175175
<tr>
176176
<td><code>controllerKeyOfComment</code></td>
177177
<td><code>'description'</code></td>
178-
<td>The property key to set the comment text to on <code>ApiOperation</code>. Eg: <code>@ApiOperation({ description: 'comment' })</code></td>
178+
<td>The property key to set the comment text to on <code>ApiOperation</code>.</td>
179179
</tr>
180180
<tr>
181181
<td><code>introspectComments</code></td>

src/app/homepage/pages/microservices/custom-transport/custom-transport.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ <h4 appAnchor id="message-serialization"><span>Message serialization</span></h4>
197197
<p>If you need to add some custom logic around the serialization of responses on the client side, you can use a custom class that extends the <code>ClientProxy</code> class or one of its child classes. For modifying successful requests you can override the <code>serializeResponse</code> method, and for modifying any errors that go through this client you can override the <code>serializeError</code> method. To make use of this custom class, you can pass the class itself to the <code>ClientsModule.register()</code> method using the <code>customClass</code> property. Below is an example of a custom <code>ClientProxy</code> that serializes each error into an <code>RpcException</code>.</p>
198198

199199
<span class="filename">
200-
{{ 'error-handling.proxy' | extension: appb95b5d8490d1d2e5a8dfa4408547e4314e16a15a.isJsActive }}
201-
<app-tabs #appb95b5d8490d1d2e5a8dfa4408547e4314e16a15a></app-tabs>
200+
{{ 'error-handling.proxy' | extension: app0de82fc4a8bf2d269aeca1e7e184438efcf3e0d8.isJsActive }}
201+
<app-tabs #app0de82fc4a8bf2d269aeca1e7e184438efcf3e0d8></app-tabs>
202202
</span><pre><code class="language-typescript">
203203
import &#123; ClientTcp, RpcException &#125; from &#39;@nestjs/microservices&#39;;
204204

@@ -210,8 +210,8 @@ <h4 appAnchor id="message-serialization"><span>Message serialization</span></h4>
210210
</code></pre><p>and then use it in the <code>ClientsModule</code> like so:</p>
211211

212212
<span class="filename">
213-
{{ 'app.module' | extension: appc6380cff174d3675b3c6660600efaf7aec5d9272.isJsActive }}
214-
<app-tabs #appc6380cff174d3675b3c6660600efaf7aec5d9272></app-tabs>
213+
{{ 'app.module' | extension: app2750dd81614c4ebfea443f3fdb1c35cf2c1bdc85.isJsActive }}
214+
<app-tabs #app2750dd81614c4ebfea443f3fdb1c35cf2c1bdc85></app-tabs>
215215
</span><pre><code class="language-typescript">
216216
@Module(&#123;
217217
imports: [

0 commit comments

Comments
 (0)