JSON Schema#
A urljsf form definition should conform to the overall JSON schema, and may
include additional, nested schema and documents, represented inline or referenced
by URL.
The Draft 7 schema is used due to its wide implementation but, most specifically, it is the latest draft natively supported in rjsf.
urljsf#
A schema for building forms for building URLs for building…
https://urljsf.rtfd.org/en/latest/_static/urljsf/schema/v0/form.schema.json |
|||||
type |
object |
||||
properties |
|||||
|
an optional identifier for this instance of the |
||||
type |
string |
||||
format |
uri-reference |
||||
|
an optional identifier for the |
||||
type |
string |
||||
format |
uri-reference |
||||
|
markdown templates, which if rendered to any non-whitespace, will be treated as an error, preventing the submit button from being shown. |
||||
|
forms that describe how to build the URL |
||||
|
isolate each form on the page in an |
||||
type |
boolean |
||||
|
additional simple CSS to apply to an |
||||
type |
string |
||||
|
don’t try to add a link to bootstrap if missing. |
||||
type |
boolean |
||||
default |
False |
||||
|
options for the |
||||
type |
object |
||||
properties |
|||||
|
extra filters to make available in |
||||
type |
array |
||||
items |
oneOf |
||||
enum |
zip |
||||
uniqueItems |
True |
||||
|
simple CSS rules scoped to the current form id, or objects keyed by child selector |
||||
|
|
||||
additionalProperties |
False |
||||
Props#
JSON-compatible default values for rjsf
Form.props.
type |
object |
|
properties |
||
|
The value of this prop will be passed to the |
|
type |
string |
|
|
The value of this prop will be passed to the NOTE: this just renders the |
|
type |
string |
|
|
The value of this prop will be passed to the |
|
type |
string |
|
|
The value of this prop will be passed to the |
|
type |
string |
|
|
It’s possible to disable the whole form by setting the |
|
type |
boolean |
|
|
The value of this prop will be passed to the |
|
type |
string |
|
|
If set to true, causes the |
|
type |
boolean |
|
|
If set to true, then the first field with an error will receive the focus when the form is submitted with errors |
|
type |
boolean |
|
|
globals for custom UI |
|
type |
object |
|
|
The data for the form, used to prefill a form with existing data |
|
type |
object |
|
|
The value of this prop will be passed to the |
|
type |
string |
|
|
To avoid collisions with existing ids in the DOM, it is possible to
change the prefix used for ids; Default is |
|
type |
string |
|
|
To avoid using a path separator that is present in field names, it is
possible to change the separator used for ids (Default is |
|
type |
string |
|
|
If |
|
type |
boolean |
|
|
If set to true, the form will perform validation and show any validation errors whenever the form data is changed, rather than just on submit |
|
type |
boolean |
|
|
The value of this prop will be passed to the |
|
type |
string |
|
|
The value of this prop will be passed to the |
|
type |
string |
|
|
If set to true, turns off HTML5 validation on the form; Set to |
|
type |
boolean |
|
|
If set to true, then extra form data values that are not in any form
field will be removed whenever |
|
type |
boolean |
|
|
It’s possible to make the whole form read-only by setting the
|
|
type |
boolean |
|
|
The JSON schema object for the form |
|
type |
object |
|
|
When this prop is set to |
|
type |
boolean / string |
|
enum |
False, top, bottom |
|
|
It’s possible to change the default |
|
type |
string |
|
|
The value of this prop will be passed to the |
|
type |
string |
|
|
The uiSchema for the form |
|
additionalProperties |
False |
|
UISchema#
type |
object |
|||||
properties |
||||||
|
An array of objects representing the items in the array |
|||||
|
Allows RJSF to override the default field implementation by specifying
either the name of a field that is used to look up an implementation
from the |
|||||
type |
string |
|||||
|
type |
boolean |
||||
|
An object that contains all the potential UI options in a single object |
|||||
type |
object |
|||||
properties |
||||||
|
We know that for title, it will be a string, if it is provided |
|||||
type |
string |
|||||
|
We know that for description, it will be a string, if it is provided |
|||||
type |
string |
|||||
|
Any classnames that the user wants to be applied to a field in the ui |
|||||
type |
string |
|||||
|
Flag, if set to |
|||||
type |
boolean |
|||||
|
The default value to use when an input for a field is empty |
|||||
anyOf |
type |
boolean |
||||
type |
number |
|||||
type |
string |
|||||
type |
object |
|||||
properties |
||||||
allOf |
type |
array |
||||
items |
||||||
type |
object |
|||||
properties |
||||||
type |
null |
|||||
|
Will disable any of the enum options specified in the array (by value) |
|||||
type |
array |
|||||
items |
type |
string / number / boolean |
||||
|
Allows a user to provide a list of labels for enum values in the schema |
|||||
anyOf |
type |
boolean |
||||
type |
number |
|||||
type |
string |
|||||
allOf |
type |
array |
||||
items |
type |
string |
||||
type |
object |
|||||
properties |
||||||
allOf |
type |
array |
||||
items |
type |
string |
||||
type |
array |
|||||
items |
||||||
type |
null |
|||||
|
Flag, if set to |
|||||
type |
boolean |
|||||
|
Used to add text next to a field to guide the end user in filling it in |
|||||
type |
string |
|||||
|
Flag, if set to |
|||||
type |
boolean |
|||||
|
Flag, if set to |
|||||
type |
boolean |
|||||
|
Used to change the input type (for example, |
|||||
type |
string |
|||||
|
This property allows you to reorder the properties that are shown for a particular object |
|||||
anyOf |
type |
boolean |
||||
type |
number |
|||||
type |
string |
|||||
allOf |
type |
array |
||||
items |
type |
string |
||||
type |
object |
|||||
properties |
||||||
allOf |
type |
array |
||||
items |
type |
string |
||||
type |
array |
|||||
items |
||||||
type |
null |
|||||
|
We know that for placeholder, it will be a string, if it is provided |
|||||
type |
string |
|||||
|
Flag, if set to |
|||||
type |
boolean |
|||||
|
Provides a means to set the initial height of a textarea widget |
|||||
type |
number |
|||||
|
type |
object |
||||
|
custom overrides for urlsjf grid |
|||||
type |
object |
|||||
properties |
||||||
|
type |
array |
||||
items |
type |
string |
||||
|
type |
object |
||||
additionalProperties |
type |
array |
||||
items |
type |
string |
||||
|
type |
array |
||||
items |
type |
string |
||||
additionalProperties |
False |
|||||
|
type |
string |
||||
|
type |
string |
||||
additionalProperties |
anyOf |
|||||
File Format#
a format that can be serialized or deserialized
type |
string |
enum |
json, toml, yaml |
Any Form#
a definition of a form
type |
object |
||
properties |
|||
|
JSON-compatible initial data for this form |
||
|
the order in which to show a form, lowest (or omitted) first, with a tiebreaker on name |
||
type |
number |
||
|
JSON-compatible subset of |
||
oneOf |
|||
type |
string |
||
format |
#/definitions/any-schema-location |
||
|
URL for a JSON schema to describe the this form: features not present in Draft 7 are best-effort. |
||
|
URL for an |
||
additionalProperties |
False |
||
An Inline Object#
A literal object
type |
object |
A Schema#
A schema-like object referenced by URL, or inline as an object
oneOf |
Schema By URL |
Inline Object |
|
any-schema-location#
a path to a JSON schema, serialized as JSON, TOML, or (simple) YAML. The
URN-like py:module.submodule:member may be used to reference an
importable module dict or str member, or function that returns
one, and will be expanded into a JSON object or URL.
type |
string |
minLength |
1 |
format |
uri-reference |
any-style#
A CSS rule, or a nested selector object containing more rules
oneOf |
type |
string |
type |
object |
any-template#
anyOf |
a |
||
type |
string |
||
a template as a list of strings that will be concatenated before being rendered
|
|||
type |
array |
||
items |
type |
string |
|
minItems |
1 |
||
checks#
nunjucks templates keyed by the label displayed to a form user: any
evaluating to a non-whitespace string will be considered failing.
type |
object |
additionalProperties |
forms#
forms used to build and populate a URL
type |
object |
patternProperties |
|
|
|
known-templates#
type |
object |
properties |
|
|
If given, a template for the submit button’s |
|
Markdown to show on the button when a form is valid. Multiple lines will
be joined with |
|
If given, the value of the |
|
a URL to apply to the submit button. All whitespace will be removed. |
styles#
CSS rules, or nested selector objects containing more rules
type |
object |
patternProperties |
|
|
|
templates#
nunjucks strings (or lists of strings) that control how strings are built from forms. See documentation for further customizations.
allOf |
||
type |
object |
|
additionalProperties |
||