基于 JSON Schema 的编辑器
| Option | Description | Default Value |
|---|---|---|
| ajax | If true, JSON Editor will load external URLs in $ref via ajax. |
false |
| ajaxBase | Allows schema references to work either with or without cors; set to protocol://host:port when api is served by different host. | |
| ajaxCredentials | If true, JSON Editor will make ajax call with [credentials](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials). |
false |
| ajax_cache_responses | If true, JSON Editor will cache external URLs' schemas in localStorage to avoid subsequent ajax calls. |
false |
| ajax_cache_buster | If ajax_cache_responses is enabled, use this string to invalidate stale caches. E.g., this value should be changed when schemas are updated. |
Current date in simplied ISO-8601 format (e.g., "2011-10-05" for October 5, 2011). |
| compact | If true, the label will not be displayed/added. |
false |
| disable_array_add | If true, remove all "add row" buttons from arrays. |
false |
| disable_array_delete | If true, remove all "delete row" buttons from arrays. |
false |
| disable_array_delete_all_rows | If true, remove all "delete all rows" buttons from arrays. |
false |
| disable_array_delete_last_row | If true, remove all "delete last row" buttons from arrays. |
false |
| disable_array_reorder | If true, remove all "move up" and "move down" buttons from arrays. |
false |
| enable_array_copy | If true, add copy buttons to arrays. |
false |
| disable_collapse | If true, remove all collapse buttons from objects and arrays. |
false |
| disable_edit_json | If true, remove all Edit JSON buttons from objects. |
false |
| disable_properties | If true, remove all Edit Properties buttons from objects. |
false |
| array_controls_top | If true, array controls (add, delete etc) will be displayed at top of list. |
false |
| form_name_root | The first part of the `name` attribute of form inputs in the editor. An full example name is `root[person][name]` where "root" is the form_name_root. | root |
| iconlib | The icon library to use for the editor. See the CSS Integration section below for more info. | null |
| remove_button_labels | Display only icons in buttons. This works only if iconlib is set. | false |
| no_additional_properties | If true, objects can only contain properties defined with the properties keyword unless the property additionalProperties: true is specified in the object schema |
false |
| refs | An object containing schema definitions for URLs. Allows you to pre-define external schemas. | {} |
| required_by_default | If true, all schemas that don't explicitly set the required property will be required. |
false |
| keep_oneof_values | If true, makes oneOf copy properties over when switching. |
true |
| keep_only_existing_values | If true, copy only existing properties over when switching. |
false |
| schema | A valid JSON Schema to use for the editor. Version 3 and Version 4 of the draft specification are supported. | {} |
| show_errors | When to show validation errors in the UI. Valid values are interaction, change, always, and never. |
"interaction" |
| startval | Seed the editor with an initial value. This should be valid against the editor's schema. | null |
| template | The JS template engine to use. See the Templates and Variables section below for more info. | default |
| theme | The CSS theme to use. See the CSS Integration section below for more info.< |
暂无开放 Issues,或尚未同步最近议题。