You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/explanations/curator_data_model.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,15 @@ JSON Schema output:
195
195
196
196
### Format
197
197
198
-
The format of this attribute. See [format](https://json-schema.org/understanding-json-schema/reference/type#format) The type of this attribute must be "string" or "string_list". The value of this column will appear as the `format` of this attribute in the JSON Schema. Must be one of:
198
+
The format of this attribute. See [format](https://json-schema.org/understanding-json-schema/reference/type#format) The type of this attribute must be "string" or "string_list". The value of this column will appear as the `format` of this attribute in the JSON Schema.
199
+
200
+
Note: The Format and Pattern columns serve different purposes:
201
+
202
+
`Pattern`: Use to validate that data matches a specific regex pattern (e.g., enforce that email addresses follow a certain format)
203
+
204
+
`Format`: Use with the regex value to indicate that the data itself is a regex pattern being stored (not validated against one)
205
+
206
+
Must be one of:
199
207
200
208
-`date-time`
201
209
-`email`
@@ -244,6 +252,12 @@ JSON Schema output:
244
252
245
253
The regex pattern this attribute must match. The type of this attribute must be `string` or `string_list`. See [pattern](https://json-schema.org/understanding-json-schema/reference/regular_expressions#regular-expressions) The value of this column will appear as the `pattern` of this attribute in the JSON Schema. Must be a legal regex pattern as determined by the python `re` library.
246
254
255
+
Note: The Format and Pattern columns serve different purposes:
256
+
257
+
`Pattern`: Use to validate that data matches a specific regex pattern (e.g., enforce that email addresses follow a certain format)
258
+
259
+
`Format`: Use with the regex value to indicate that the data itself is a regex pattern being stored (not validated against one)
0 commit comments