Skip to main content
License: LGPL-3

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:

  1. Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-web

  2. Add the path to this repository in your configuration (addons-path)

  3. Update the module list (Must be on developer mode)

  4. Go to menu Apps -> Apps -> Main Apps

  5. Search For Widget RJSF JSON Data Schema

  6. 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

Maintainer

PT. Simetri Sinergi Indonesia

This module is maintained by the PT. Simetri Sinergi Indonesia.

Metadata

Release files for odoo14-addon-ssi-web-widget-rjsf 14.0.1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo14-addon-ssi-web-widget-rjsf 14.0.1.0.0
File Interpreter ABI Platform
odoo14_addon_ssi_web_widget_rjsf-14.0.1.0.0-py3-none-any.whl Python 3 none any Details

Release files / odoo14_addon_ssi_web_widget_rjsf-14.0.1.0.0-py3-none-any.whl

Download URL odoo14_addon_ssi_web_widget_rjsf-14.0.1.0.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c6cc22e5a2876d05dc8dd88187f6ab5e03875dce449b546d985f367e2c7e053
BLAKE2b-256 checksum
How to use checksums
c8189e9af46a45b8b4d34d4d83a285c8d297fab82924e9302c2655f4fa7c8cbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

14.0.1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page