mirror of
https://github.com/nestjs/docs.nestjs.com.git
synced 2026-02-25 22:15:07 +00:00
bugfix(): fix swagger file, update app module
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
#if the request is not secure
|
||||
RewriteCond %{HTTPS} off
|
||||
#redirect to the secure version
|
||||
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
|
||||
|
||||
#These are your existing rules
|
||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
|
||||
@@ -129,7 +129,7 @@ export const ApiModelProperty: (metadata?: {
|
||||
}) => PropertyDecorator;
|
||||
```
|
||||
|
||||
> warning **Hint** There's an `@ApiModelPropertyOptional()` shortcut decorator which helps to avoid continuous typing `{{ apiModelPropertyOptional }}`.
|
||||
> warning **Hint** There's an `@ApiModelPropertyOptional()` shortcut decorator which helps to avoid continuous typing `@ApiModelProperty({ required: false })`.
|
||||
|
||||
Thanks to that we can simply set the **default** value, determine whether the property is required or explicitly set the type.
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import { HeaderComponent } from './homepage/header/header.component';
|
||||
import { HomepageComponent } from './homepage/homepage.component';
|
||||
import { MenuItemComponent } from './homepage/menu/menu-item/menu-item.component';
|
||||
import { MenuComponent } from './homepage/menu/menu.component';
|
||||
import { MixinComponentsComponent } from './homepage/pages/advanced/mixin-components/mixin-components.component';
|
||||
import { ApplicationContextComponent } from './homepage/pages/application-context/application-context.component';
|
||||
import { ComponentsComponent } from './homepage/pages/components/components.component';
|
||||
import { ControllersComponent } from './homepage/pages/controllers/controllers.component';
|
||||
@@ -57,6 +58,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
|
||||
BasePageComponent,
|
||||
ComponentsComponent,
|
||||
ModulesComponent,
|
||||
MixinComponentsComponent,
|
||||
MiddlewaresComponent,
|
||||
PipesComponent,
|
||||
ExceptionFiltersComponent,
|
||||
|
||||
@@ -101,7 +101,7 @@ export const ApiModelProperty: (metadata?: {
|
||||
example?: any;
|
||||
}) => PropertyDecorator;</code></pre>
|
||||
<blockquote class="
|
||||
warning "><strong>Hint</strong> There's an <code>@ApiModelPropertyOptional()</code> shortcut decorator which helps to avoid continuous typing <code>{{ apiModelPropertyOptional }}</code>.
|
||||
warning "><strong>Hint</strong> There's an <code>@ApiModelPropertyOptional()</code> shortcut decorator which helps to avoid continuous typing <code>@ApiModelProperty(&#123 required: false &#125)</code>.
|
||||
</blockquote>
|
||||
<p>Thanks to that we can simply set the <strong>default</strong> value, determine whether the property is required or explicitly set the type.</p>
|
||||
<h4 appAnchor id="multiple-specifications"><span>Multiple specifications</span></h4>
|
||||
|
||||
Reference in New Issue
Block a user