Field widget to edit JSON fields using React JSON Schema Form (RJSF)
Project description
Widget RJSF JSON Data Schema
A field widget (rjsf) that lets users edit a Text field containing JSON using React JSON Schema Form (RJSF) in edit mode. In read-only mode the stored JSON is displayed as a formatted block.
Usage
Apply the widget to any text field in a form view and supply a JSON Schema via the options attribute:
<field
name="json_data"
widget="rjsf"
options='{"schema": {"type": "object",
"properties": {"name": {"type": "string"},
"age": {"type": "integer"}}}}'
/>
Available options
Option |
Type |
Default |
Description |
|---|---|---|---|
schema |
object |
— |
Required. JSON Schema describing the form. |
uiSchema |
object |
{} |
RJSF uiSchema for UI customization. |
liveValidate |
boolean |
false |
Validate against schema on every change. |
omitExtraData |
boolean |
false |
Strip keys not described in the schema on save. |
Features
Edit mode — full RJSF form rendered from the supplied JSON Schema.
Read-only mode — stored JSON displayed as a pretty-printed code block.
Live validation — optional real-time schema validation via ajv8.
No OWL — built on Odoo 14 legacy JS (web.AbstractField).
Self-contained — bundles React 17, @rjsf/core 5, and @rjsf/validator-ajv8 5; no CDN dependency.
Installation
To install this module, you need to:
Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-web
Add the path to this repository in your configuration (addons-path)
Update the module list (Must be on developer mode)
Go to menu Apps -> Apps -> Main Apps
Search For Widget RJSF JSON Data Schema
Install the module
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Credits
Contributors
Andhitia Rama <andhitia.r@gmail.com>
Maintainer
This module is maintained by the PT. Simetri Sinergi Indonesia.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo14_addon_ssi_web_widget_rjsf-14.0.1.0.0-py3-none-any.whl.
File metadata
- Download URL: odoo14_addon_ssi_web_widget_rjsf-14.0.1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c6cc22e5a2876d05dc8dd88187f6ab5e03875dce449b546d985f367e2c7e053
|
|
| MD5 |
9a3f235c802effd7cdf32e92fcee0944
|
|
| BLAKE2b-256 |
c8189e9af46a45b8b4d34d4d83a285c8d297fab82924e9302c2655f4fa7c8cbf
|