Relative Content

Tag Archive for jsonschema

Good tools (preferably web based) for exploring a JSON Schema definition

I’ve been surprised by the lack of good documentation tools for exploring JSON Schema. If you’re using openAPI then SwaggerUI is great for understanding what can and can’t be sent to an API (and of course that accepts JSON Schema) – but we’ve got a use case that isn’t a HTTP API.

In a JSON schema, can the editing of a specific property’s value be restricted based on user permissions?

I have created a graph schema in JSON and need to restrict the editing of the values in specific properties to a specific user-group. For example, if the property is a Boolean type and it has been turned on, only members of that specific user-group should be allowed to change the Boolean, while all other users have read-only access to that property; or if a specific value has been entered in a string property (e.g. “Blue”), then similarly editing of that property is limited to that group (and others can view its value) who are the only ones who can change its value to “Red”.