Skip to content

Commit 0dc904b

Browse files
committed
adjusted val cols
1 parent 266c8dd commit 0dc904b

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/webapp/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(
4343

4444

4545
def normalize_col(name: str) -> str:
46-
return name.strip().lower().replace(" ", "_").replace("-", "_")
46+
return re.sub(r"[^a-zA-Z0-9_]", "_", name.strip().lower())
4747

4848

4949
def load_json(path: str) -> Any:

src/webapp/validation_schemas/base_schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@
424424
"coerce": true,
425425
"nullable": false,
426426
"required": true,
427-
"aliases": ["student id", "guid", "study_id"],
427+
"aliases": ["student id", "guid", "study_id", "student_guid"],
428428
"checks": [{"type": "str_length", "args": [], "kwargs": {"min_value": 3}}]
429429
},
430430
"semester": {

src/webapp/validation_schemas/pdp_schema_extension.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3047,6 +3047,15 @@
30473047
}
30483048
]
30493049
},
3050+
"term_program_of_study": {
3051+
"dtype": "category",
3052+
"categories": [],
3053+
"coerce": true,
3054+
"nullable": false,
3055+
"required": true,
3056+
"aliases": [],
3057+
"checks": []
3058+
},
30503059
"section_id": {
30513060
"dtype": "string",
30523061
"coerce": true,

0 commit comments

Comments
 (0)