From 3388acc556e430b81b23f411e1151e74e6319bcd Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 3 Feb 2026 10:13:06 -0800 Subject: [PATCH 1/5] added notes for distinguising pattern from regex --- docs/explanations/curator_data_model.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/explanations/curator_data_model.md b/docs/explanations/curator_data_model.md index feb389cb0..89e2437cd 100644 --- a/docs/explanations/curator_data_model.md +++ b/docs/explanations/curator_data_model.md @@ -197,6 +197,8 @@ JSON Schema output: 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: +Note: If you want your string values to MATCH a regex use the `Pattern` column. If you want your data to BE a regex pattern use this column, with the the `regex` value. + - `date-time` - `email` - `hostname` @@ -244,6 +246,8 @@ 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: If you want your string values to MATCH a regex use this column. If you want your data to BE a regex use the `Format` column, with the `regex` value. + Data Model: | Attribute | DependsOn | columnType | Pattern | IsTemplate | From 94d2add2fdc68e422091ceb68bda8799a0687a15 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 3 Feb 2026 10:16:45 -0800 Subject: [PATCH 2/5] changed the wording of the notes --- docs/explanations/curator_data_model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/explanations/curator_data_model.md b/docs/explanations/curator_data_model.md index 89e2437cd..2219e9caa 100644 --- a/docs/explanations/curator_data_model.md +++ b/docs/explanations/curator_data_model.md @@ -197,7 +197,7 @@ JSON Schema output: 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: -Note: If you want your string values to MATCH a regex use the `Pattern` column. If you want your data to BE a regex pattern use this column, with the the `regex` value. +Note: If you want your data to MATCH a regex use the `Pattern` column. If you want your data to BE a regex pattern use this column, with the the `regex` value. - `date-time` - `email` @@ -246,7 +246,7 @@ 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: If you want your string values to MATCH a regex use this column. If you want your data to BE a regex use the `Format` column, with the `regex` value. +Note: If you want your data to MATCH a regex use this column. If you want your data to BE a regex use the `Format` column, with the `regex` value. Data Model: From bd3a692bb4462b4f6cb1ab2cb1af095405e7011f Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 3 Feb 2026 10:17:09 -0800 Subject: [PATCH 3/5] changed the wording of the notes --- docs/explanations/curator_data_model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/explanations/curator_data_model.md b/docs/explanations/curator_data_model.md index 2219e9caa..7d2683dd8 100644 --- a/docs/explanations/curator_data_model.md +++ b/docs/explanations/curator_data_model.md @@ -197,7 +197,7 @@ JSON Schema output: 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: -Note: If you want your data to MATCH a regex use the `Pattern` column. If you want your data to BE a regex pattern use this column, with the the `regex` value. +Note: If you want your data to MATCH a regex use the `Pattern` column. If you want your data to BE a regex pattern use this column, with the the `regex` value. - `date-time` - `email` From cb36ffaee9223fb350be0958756e4043233637c3 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Mon, 9 Feb 2026 14:48:27 -0800 Subject: [PATCH 4/5] modified notes --- docs/explanations/curator_data_model.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/explanations/curator_data_model.md b/docs/explanations/curator_data_model.md index 7d2683dd8..fcfa3a851 100644 --- a/docs/explanations/curator_data_model.md +++ b/docs/explanations/curator_data_model.md @@ -195,9 +195,13 @@ 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: +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) -Note: If you want your data to MATCH a regex use the `Pattern` column. If you want your data to BE a regex pattern use this column, with the the `regex` value. + `Format`: Use with the regex value to indicate that the data itself is a regex pattern being stored (not validated against one) + +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: - `date-time` - `email` @@ -244,9 +248,14 @@ JSON Schema output: ### Pattern +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) + 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: If you want your data to MATCH a regex use this column. If you want your data to BE a regex use the `Format` column, with the `regex` value. Data Model: From c77a733c5accb37efeb2646c4fcb68c099b9a39e Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Mon, 16 Feb 2026 10:18:15 -0800 Subject: [PATCH 5/5] reorder doc --- docs/explanations/curator_data_model.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/explanations/curator_data_model.md b/docs/explanations/curator_data_model.md index fcfa3a851..6dd6fea5b 100644 --- a/docs/explanations/curator_data_model.md +++ b/docs/explanations/curator_data_model.md @@ -195,13 +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. + 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) -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: +Must be one of: - `date-time` - `email` @@ -248,15 +250,14 @@ JSON Schema output: ### Pattern +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) -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. - - Data Model: | Attribute | DependsOn | columnType | Pattern | IsTemplate |