mirror of
https://github.com/Redocly/redoc.git
synced 2025-06-02 04:03:23 +03:00
Add Header for response schema
This commit is contained in:
parent
269f535d7f
commit
a8cd9e3c14
|
@ -12,6 +12,9 @@
|
||||||
<div class="header-description" innerHtml="{{header.description | marked}}"> </div>
|
<div class="header-description" innerHtml="{{header.description | marked}}"> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<header *ngIf="response.headers">
|
||||||
|
Response Schema
|
||||||
|
</header>
|
||||||
<json-schema *ngIf="response.schema && options.disableLazySchemas" class="schema type" pointer="{{response.pointer}}/schema">
|
<json-schema *ngIf="response.schema && options.disableLazySchemas" class="schema type" pointer="{{response.pointer}}/schema">
|
||||||
</json-schema>
|
</json-schema>
|
||||||
<json-schema-lazy #lazySchema pointer="{{response.schema ? response.pointer + '/schema' : null}}">
|
<json-schema-lazy #lazySchema pointer="{{response.schema ? response.pointer + '/schema' : null}}">
|
||||||
|
|
|
@ -28,6 +28,11 @@ header {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
|
|
||||||
|
&:not(:first-child) {
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user