mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +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 *ng-for="#prop of data.properties" class="param-wrap">
|
||||
<div class="param">
|
||||
|
|
|
@ -26,6 +26,7 @@ export default class JsonSchema extends BaseComponent {
|
|||
this.data.properties = [];
|
||||
if (schema.type !== 'object') {
|
||||
// TODO
|
||||
this.errorMessage = 'Non-object (array-based or all-of) schemas are not implemented yet';
|
||||
return;
|
||||
}
|
||||
if (!schema.properties) return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user