Add message for non-implemented schemas

This commit is contained in:
Roman Hotsiy 2015-11-24 00:13:27 +02:00
parent a0b66655bf
commit 743f270feb
2 changed files with 2 additions and 0 deletions

View File

@ -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">

View File

@ -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;