Skip to content

Commit c389b3e

Browse files
committed
rm pattern from data type spec
1 parent 8d73871 commit c389b3e

10 files changed

+0
-13
lines changed

synapseclient/extensions/curator/schema_generation.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,9 +2025,6 @@ class ClassTemplate:
20252025
magic_validationRules: list = field(
20262026
default_factory=list, metadata=config(field_name="sms:validationRules")
20272027
)
2028-
magic_pattern: list = field(
2029-
default_factory=list, metadata=config(field_name="sms:pattern")
2030-
)
20312028

20322029

20332030
class DataModelJsonLD:
@@ -5176,7 +5173,6 @@ class JSONSchema: # pylint: disable=too-many-instance-attributes
51765173
properties: dict[str, Property] = field(default_factory=dict)
51775174
required: list[str] = field(default_factory=list)
51785175
all_of: list[AllOf] = field(default_factory=list)
5179-
pattern: str = ""
51805176

51815177
def as_json_schema_dict(
51825178
self,

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.Biospecimen.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$id": "http://example.com/Biospecimen_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "TBD",
5-
"pattern": "",
65
"properties": {
76
"Component": {
87
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.BulkRNA-seqAssay.display_names_schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
}
9797
],
9898
"description": "TBD",
99-
"pattern": "",
10099
"properties": {
101100
"Component": {
102101
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.BulkRNA-seqAssay.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
}
9797
],
9898
"description": "TBD",
99-
"pattern": "",
10099
"properties": {
101100
"Component": {
102101
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.JSONSchemaComponent.display_names_schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$id": "http://example.com/JSONSchemaComponent_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "Component to hold attributes for testing JSON Schemas",
5-
"pattern": "",
65
"properties": {
76
"Component": {
87
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.JSONSchemaComponent.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$id": "http://example.com/JSONSchemaComponent_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "Component to hold attributes for testing JSON Schemas",
5-
"pattern": "",
65
"properties": {
76
"Component": {
87
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.MockComponent.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$id": "http://example.com/MockComponent_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "Component to hold mock attributes for testing all validation rules",
5-
"pattern": "",
65
"properties": {
76
"CheckAges": {
87
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.MockFilename.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$id": "http://example.com/MockFilename_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "TBD",
5-
"pattern": "",
65
"properties": {
76
"Component": {
87
"description": "TBD",

tests/unit/synapseclient/extensions/schema_files/expected_jsonschemas/expected.MockRDB.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$id": "http://example.com/MockRDB_validation",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"description": "TBD",
5-
"pattern": "",
65
"properties": {
76
"Component": {
87
"description": "TBD",

tests/unit/synapseclient/extensions/unit_test_create_json_schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def test_as_json_schema_dict(self) -> None:
271271
"$id": "",
272272
"$schema": "http://json-schema.org/draft-07/schema#",
273273
"description": "TBD",
274-
"pattern": "",
275274
"properties": {},
276275
"required": [],
277276
"title": "",

0 commit comments

Comments
 (0)