Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Is it possible to constrain possible edits somehow? #25

Closed
perqa opened this issue Jan 23, 2015 · 1 comment
Closed

Is it possible to constrain possible edits somehow? #25

perqa opened this issue Jan 23, 2015 · 1 comment
Labels

Comments

@perqa
Copy link

perqa commented Jan 23, 2015

Awesome library. I have a use case in which I need to constrain possible edits to a certain structure. Is it possible to enforce that with JSONedit in some way? For example using a JSON schema and validate against that for each modification?

@mb21 mb21 added the question label Jan 23, 2015
@mb21
Copy link
Owner

mb21 commented Jan 23, 2015

You can access the JSON and do with it whatever you want, like running it through a validator that remove invalid properties etc., then assign that again to the angular variable.

@mb21 mb21 closed this as completed Jan 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants