mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
Fix read-only fields appear in request samples (fixes #142)
This commit is contained in:
parent
878d3191f9
commit
5bd0ac2d11
|
@ -98,7 +98,7 @@ export class SchemaSample extends BaseComponent implements OnInit {
|
|||
if (this.skipReadOnly && this.componentSchema['x-redoc-ro-sample']) {
|
||||
this.sample = this.componentSchema['x-redoc-ro-sample'];
|
||||
return true;
|
||||
} else if (this.componentSchema['x-redoc-rw-sample']) {
|
||||
} else if (!this.skipReadOnly && this.componentSchema['x-redoc-rw-sample']) {
|
||||
this.sample = this.componentSchema['x-redoc-rw-sample'];
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user