diff --git a/README.md b/README.md
index ffedfd87..e05a3c1e 100644
--- a/README.md
+++ b/README.md
@@ -141,6 +141,7 @@ ReDoc makes use of the following [vendor extensions](http://swagger.io/specifica
* `hide-hostname` - if set, the protocol and hostname is not shown in the operation definition.
* `expand-responses` - specify which responses to expand by default by response codes. Values should be passed as comma-separated list without spaces e.g. `expand-responses="200,201"`. Special value `"all"` expands all responses by default. Be careful: this option can slow-down documentation rendering time.
* `required-props-first` - show required properties first ordered in the same order as in `required` array.
+* `no-auto-auth` - do not inject Authentication section automatically
## Advanced usage
Instead of adding `spec-url` attribute to the `
- Contact:
+ Contact:
{{info.contact.name || info.contact.url}}
diff --git a/lib/components/EndpointLink/endpoint-link.scss b/lib/components/EndpointLink/endpoint-link.scss
index 3bcbc510..9a70ba0a 100644
--- a/lib/components/EndpointLink/endpoint-link.scss
+++ b/lib/components/EndpointLink/endpoint-link.scss
@@ -110,3 +110,39 @@
transform: translateY(0%) scaleY(1);
}
}
+
+.http-verb {
+ color: white;
+
+ &.get {
+ background-color: $get-color;
+ }
+
+ &.post {
+ background-color: $post-color;
+ }
+
+ &.put {
+ background-color: $put-color;
+ }
+
+ &.options {
+ background-color: $options-color;
+ }
+
+ &.patch {
+ background-color: $patch-color;
+ }
+
+ &.delete {
+ background-color: $delete-color;
+ }
+
+ &.basic {
+ background-color: $basic-color;
+ }
+
+ &.link {
+ background-color: $link-color;
+ }
+}
diff --git a/lib/components/JsonSchema/json-schema-lazy.ts b/lib/components/JsonSchema/json-schema-lazy.ts
index 24e2f1cb..c3a81bb1 100644
--- a/lib/components/JsonSchema/json-schema-lazy.ts
+++ b/lib/components/JsonSchema/json-schema-lazy.ts
@@ -36,7 +36,7 @@ export class JsonSchemaLazy implements OnDestroy, OnInit, AfterViewInit {
return schema && schema.$ref || this.pointer;
}
- _loadAfterSelf() {
+ private _loadAfterSelf() {
var componentFactory = this.resolver.resolveComponentFactory(JsonSchema);
let contextInjector = this.location.parentInjector;
let compRef = this.location.createComponent(componentFactory, null, contextInjector, null);
diff --git a/lib/components/Operation/operation.ts b/lib/components/Operation/operation.ts
index 7931069a..9b635cd4 100644
--- a/lib/components/Operation/operation.ts
+++ b/lib/components/Operation/operation.ts
@@ -4,9 +4,9 @@ import JsonPointer from '../../utils/JsonPointer';
import { BaseComponent, SpecManager } from '../base';
import { SchemaHelper } from '../../services/schema-helper.service';
import { OptionsService, MenuService } from '../../services/';
+import { SwaggerBodyParameter } from '../../utils/swagger-typings';
-
-interface OperationInfo {
+export interface OperationInfo {
verb: string;
path: string;
info: {
@@ -72,7 +72,7 @@ export class Operation extends BaseComponent implements OnInit {
return tags.filter(tag => tagsMap[tag] && tagsMap[tag]['x-traitTag']);
}
- findBodyParam() {
+ findBodyParam():SwaggerBodyParameter {
let params = this.specMgr.getOperationParams(this.pointer);
let bodyParam = params.find(param => param.in === 'body');
return bodyParam;
diff --git a/lib/components/OperationsList/operations-list.html b/lib/components/OperationsList/operations-list.html
index 0907c592..aa57ed89 100644
--- a/lib/components/OperationsList/operations-list.html
+++ b/lib/components/OperationsList/operations-list.html
@@ -1,7 +1,7 @@
-
diff --git a/lib/components/Search/redoc-search.scss b/lib/components/Search/redoc-search.scss
index 19bee15a..c58fc3b5 100644
--- a/lib/components/Search/redoc-search.scss
+++ b/lib/components/Search/redoc-search.scss
@@ -44,6 +44,7 @@ input {
overflow-y: auto;
border-bottom: 1px solid darken($side-bar-bg-color, 10%);
border-top: 1px solid darken($side-bar-bg-color, 10%);
+ line-height: 1.2;
min-height: 150px;
max-height: 250px;
diff --git a/lib/components/Search/redoc-search.ts b/lib/components/Search/redoc-search.ts
index 35a66ff5..5cf8b286 100644
--- a/lib/components/Search/redoc-search.ts
+++ b/lib/components/Search/redoc-search.ts
@@ -74,7 +74,7 @@ export class RedocSearch implements OnInit {
item.pointers
);
this.marker.remark();
- this.menu.activate(item.menuItem.flatIdx);
+ this.menu.activate(item.menuItem);
this.menu.scrollToActive();
}
diff --git a/lib/components/SideMenu/side-menu-items.html b/lib/components/SideMenu/side-menu-items.html
index 0db93069..74e72a90 100644
--- a/lib/components/SideMenu/side-menu-items.html
+++ b/lib/components/SideMenu/side-menu-items.html
@@ -1,6 +1,9 @@