question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Request for JSON Schema

See original GitHub issue

What problem does this feature solve?

It will allow the users to validate whether the Echarts option they have authored is correct or not. Vega and Vega-Lite also provides it: https://github.com/vega/schema.

What does the proposed API look like?

.json files can be released. Or an ESM module can be released from where the JSON schema can be simply imported and later used by users as needed.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
maneetgoyalcommented, Jan 28, 2022

@pissang Was taking a deeper look. The format of the JSON schema seems inconsistent with the specifications.

For example, the value of the first property $schema seems incorrect.

If providing the JSON schema is too much of a hassle, is there any other way (utility function), which can validate the option JSON during run time? Would be of great help.

1reaction
pissangcommented, Jan 27, 2022

We have a JSON schema for our doc page. https://github.com/apache/echarts-website/blob/asf-site/en/documents/option.json But I’m not sure if it’s accurate enough for you. Perhaps you can have a try

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON Schema | The home of JSON Schema
JSON Schema is a declarative language that allows you to annotate and validate JSON documents. JSON Schema enables the confident and reliable use...
Read more >
Feature request: Datalog schema #609 - metosin/malli - GitHub
Like malli.json-schema but for datalog. Then with providers we can build a pipeline of inference -> schema -> datalog schema, which is neat....
Read more >
JsonSchemaForm UI Schema horizontal layout - Retool Forum
Hi Biz, welcome to the community! Which component(s) are you trying to have elements flow horizontally in? (perhaps the JSON schema form?)
Read more >
JSON to JSON Schema - Developer Tool - Itential
Itential's JSONtoSchema is a tool that intelligently and dynamically generates JSON Schema based on user provided JSON objects. This JSON Schema builder makes ......
Read more >
Site template JSON schema - Microsoft Learn
Each action is specified by a "verb" value. Verb actions are run in the order they appear in the JSON script. Only the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found