Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title and Description rendering #43

Open
JakeAngell opened this issue Nov 1, 2017 · 2 comments
Open

Title and Description rendering #43

JakeAngell opened this issue Nov 1, 2017 · 2 comments

Comments

@JakeAngell
Copy link

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
Copy link
Owner

rodikh commented Nov 1, 2017

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)

@JakeAngell
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants