Skip to content

Commit

Permalink
bugfix(): fix swagger file, update app module
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 17, 2019
1 parent ab2a89b commit 1e6bd1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion content/recipes/swagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(&#123 required: false &#125)`.
Thanks to that we can simply set the **default** value, determine whether the property is required or explicitly set the type.

Expand Down
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -57,6 +58,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
BasePageComponent,
ComponentsComponent,
ModulesComponent,
MixinComponentsComponent,
MiddlewaresComponent,
PipesComponent,
ExceptionFiltersComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h4 appAnchor id="body-query-path-parameters"><span>Body, query, path parameters
example?: any;
&#125;) =&gt; PropertyDecorator;</code></pre>
<blockquote class="
warning "><strong>Hint</strong> There&#39;s an <code>@ApiModelPropertyOptional()</code> shortcut decorator which helps to avoid continuous typing <code>{{ apiModelPropertyOptional }}</code>.
warning "><strong>Hint</strong> There&#39;s an <code>@ApiModelPropertyOptional()</code> shortcut decorator which helps to avoid continuous typing <code>@ApiModelProperty(&amp;#123 required: false &amp;#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>
Expand Down

0 comments on commit 1e6bd1c

Please sign in to comment.