Closed jaumemilian closed 4 years ago
Maybe this https://github.com/editor-js/editorjs-php can help you?
Hi @jaumemilian
As the Editor.js core doesn't know anything about the tool's data structure, validation should be performed by the tool. You can provide validate
method that is called after the save
method.
However, I think it is a good idea to provide some final validation, but requires further discussion
Thanks @gohabereg for the response,
In our case, we use the tool from front, but as we expose a public API to store the documents we also are validating in back the format of the document.
Of course, that validation is not part of our Application/Domain layer, but it is set in the Infrastructure layer.
We have created our own JsonSchema to validate
Kind regards, Jaume
Hi,
Do you have any official Json Schema document in order to validate the Json that is provided by the tool?
Thanks, Jaume