CrowdAnki icon indicating copy to clipboard operation
CrowdAnki copied to clipboard

Feature request - json-schema to validate the anki json file

Open ajit555 opened this issue 7 years ago • 2 comments

First of all, many many thanks for this. Rated on the add-in site with below comment- "A big thumbs up!! Much more faster to update the decks in a text editor than application. Of course, it is for advanced users who are familiar with the data model. However, we need a schema file to validate the resultant anki json file to validate it so that we do not upload the corrupt json file. I am not sure schema exists, hence going to ask the developer for the same at the GitHub account."

IMHO, a baseline schema can be generated from the json file at "https://jsonschema.net/#/" and worked from there on. I use json-buddy json editor (http://www.json-buddy.com/json-schema-editor.htm) in which the schema can be referred and json can be validated for any semantic errors.

ajit555 avatar Feb 07 '18 05:02 ajit555

Hey, I'm glad you find the plugin useful 😄

There is no schema as of yet, but you're welcome to contribute one 😉 .

Stvad avatar Feb 21 '18 18:02 Stvad

Is there any way to figure out what fields are required to make it work?

qwiglydee avatar May 25 '18 16:05 qwiglydee