angular-json-editor icon indicating copy to clipboard operation
angular-json-editor copied to clipboard

Title and Description rendering

Open JakeAngell opened this issue 8 years ago • 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

JakeAngell avatar Nov 01 '17 14:11 JakeAngell

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)

rodikh avatar Nov 01 '17 15:11 rodikh

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.

JakeAngell avatar Nov 01 '17 15:11 JakeAngell