Title and Description rendering
JakeAngell opened this issue · 2 comments
JakeAngell commented
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
rodikh commented
Hey Jake,
The schema is being passed as-is to the original JSON editor, so it should behave the same.
- Are you passing the schema synchronously or after some http request or promise?
- Perhaps it's an issue with the version of JSON editor that's installed by bower? (we're using ^0.7.28)
JakeAngell commented
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.