mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +03:00
Add message for non-implemented schemas
This commit is contained in:
parent
a0b66655bf
commit
743f270feb
|
@ -1,3 +1,4 @@
|
||||||
|
<small *ng-if="errorMessage">{{errorMessage}}</small>
|
||||||
<div class="params-wrap">
|
<div class="params-wrap">
|
||||||
<div *ng-for="#prop of data.properties" class="param-wrap">
|
<div *ng-for="#prop of data.properties" class="param-wrap">
|
||||||
<div class="param">
|
<div class="param">
|
||||||
|
|
|
@ -26,6 +26,7 @@ export default class JsonSchema extends BaseComponent {
|
||||||
this.data.properties = [];
|
this.data.properties = [];
|
||||||
if (schema.type !== 'object') {
|
if (schema.type !== 'object') {
|
||||||
// TODO
|
// TODO
|
||||||
|
this.errorMessage = 'Non-object (array-based or all-of) schemas are not implemented yet';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!schema.properties) return;
|
if (!schema.properties) return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user