rodikh/angular-json-editor

Title and Description rendering

JakeAngell opened this issue · 2 comments

In the original JSON editor, the title and description properties of a schema would be rendered on the UI so some metadata about a field could be displayed.

{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "title": "Product",
    "description": "A product from Acme's catalog",
    "type": "object"
}

Does this library change the way the description would be rendered at all?

The description field is rendered when using the json-editor jsfiddles, but not when I'm using this directive.

Thanks

Hey Jake,
The schema is being passed as-is to the original JSON editor, so it should behave the same.

  1. Are you passing the schema synchronously or after some http request or promise?
  2. Perhaps it's an issue with the version of JSON editor that's installed by bower? (we're using ^0.7.28)

I'm using q.defer() for the schema and resolving it after I've done a number of HTTP requests. Used with an ng-if directive as follows.

<div  ng-if="mySchema !== undefined" >
            <json-editor schema="mySchema" startval="myStartVal" buttons-controller="AsyncButtonsController">

I've updated my version directly from the dist folder.