Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion docs/explanations/curator_data_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,15 @@ JSON Schema output:

### Format

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:
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.

Note: The Format and Pattern columns serve different purposes:

`Pattern`: Use to validate that data matches a specific regex pattern (e.g., enforce that email addresses follow a certain format)

`Format`: Use with the regex value to indicate that the data itself is a regex pattern being stored (not validated against one)

Must be one of:

- `date-time`
- `email`
Expand Down Expand Up @@ -244,6 +252,12 @@ JSON Schema output:

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.

Note: The Format and Pattern columns serve different purposes:

`Pattern`: Use to validate that data matches a specific regex pattern (e.g., enforce that email addresses follow a certain format)

`Format`: Use with the regex value to indicate that the data itself is a regex pattern being stored (not validated against one)

Data Model:

| Attribute | DependsOn | columnType | Pattern | IsTemplate |
Expand Down
Loading