File tree Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ layout: page.html
3
3
title : Schema
4
4
---
5
5
6
- This document will be completed in future.
7
-
8
- Meanwhile, all the following things have been documented in React JSON Form's sister
9
- project: [ django-jsonform] ( https://django-jsonform.readthedocs.io/en/latest/ ) .
6
+ <div class =" alert alert-info " >
7
+ <p><strong>Note</strong></p>
8
+ <p>This document will be completed in future.</p>
9
+ <p>
10
+ Meanwhile, all the following things have been documented in React JSON Form's sister
11
+ project: <a href="https://django-jsonform.readthedocs.io/en/latest/">django-jsonform<a>.
12
+ </p>
13
+ </div >
10
14
11
15
## Schema guide
12
16
Original file line number Diff line number Diff line change @@ -168,10 +168,26 @@ let errorMap = {
168
168
' 0' : ' This is required' ,
169
169
170
170
// first item > object > property: name
171
- ' 0-name' : ' This is required'
171
+ // (see note below about the section sign "§")
172
+ ' 0§name' : ' This is required'
172
173
}
173
174
```
174
175
176
+ <div class =" alert alert-info " >
177
+ <p><strong>The section sign (§)</strong></p>
178
+ <p>
179
+ The section sign (<code>§</code>) is used as the separator symbol for
180
+ doing nested items lookup.
181
+ </p>
182
+ <p>
183
+ Earlier, the hyphen (<code>-</code>) was used but that complicated things
184
+ when the the schema object properties (i.e. field names) also had a hyphen
185
+ in them. Then it became impossible to determine whether the hyphen was the
186
+ separator or part of the key.
187
+ </p>
188
+ </div >
189
+
190
+
175
191
##### ` DataValidator ` API reference
176
192
177
193
##### Constructor
You can’t perform that action at this time.
0 commit comments