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
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,13 +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.
199
+
198
200
Note: The Format and Pattern columns serve different purposes:
199
201
200
202
`Pattern`: Use to validate that data matches a specific regex pattern (e.g., enforce that email addresses follow a certain format)
201
203
202
204
`Format`: Use with the regex value to indicate that the data itself is a regex pattern being stored (not validated against one)
203
205
204
-
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:
206
+
Must be one of:
205
207
206
208
-`date-time`
207
209
-`email`
@@ -248,15 +250,14 @@ JSON Schema output:
248
250
249
251
### Pattern
250
252
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.
254
+
251
255
Note: The Format and Pattern columns serve different purposes:
252
256
253
257
`Pattern`: Use to validate that data matches a specific regex pattern (e.g., enforce that email addresses follow a certain format)
254
258
255
259
`Format`: Use with the regex value to indicate that the data itself is a regex pattern being stored (not validated against one)
256
260
257
-
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.
0 commit comments