Skip to content

Is there any example for ajv validations for jsonforms on Theia Properties #1391

Answered by ndoschek
amiths89 asked this question in General
Discussion options

You must be logged in to vote

Hi @amiths89,

Thanks for reaching out!

We have a simple example you can look at, where we use the @eclipse-emfcloud/jsonforms-property-view within a Theia-based GLSP example.
You can find it here: GLSP Property View Example. Please note that it’s not updated to the latest GLSP version, but it showcases different scenarios, but it should still run as expected.

To easily integrate AJV validation (https://jsonforms.io/docs/validation), you can override the base JsonForms property widget and add the validation directly to the JsonForms instance. I added a new commit on top of the mentioned branch to briefly showcase this.
To quickly highlight the main change, here’s an example of how you can …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@amiths89
Comment options

@ndoschek
Comment options

@amiths89
Comment options

Answer selected by amiths89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants