Skip to main content

Field widget to edit JSON fields using React JSON Schema Form (RJSF)

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo14_addon_ssi_web_widget_rjsf-14.0.1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_ssi_web_widget_rjsf-14.0.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c6cc22e5a2876d05dc8dd88187f6ab5e03875dce449b546d985f367e2c7e053
MD5 9a3f235c802effd7cdf32e92fcee0944
BLAKE2b-256 c8189e9af46a45b8b4d34d4d83a285c8d297fab82924e9302c2655f4fa7c8cbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page