Skip to content

Fix JSON formatting - #73

Merged
sujata-m merged 2 commits into
devfrom
bugfix-3657
Jun 10, 2026
Merged

sujata-m merged 2 commits into
devfrom
bugfix-3657

Conversation

@sujata-m

Copy link
Copy Markdown
Collaborator

Dev Board Ticket

Changes

  • Fixed validation error output so job messages emit parseable JSON with double-quoted keys and strings.
  • Added parsing for gtfs-canonical-validator==0.0.9 JSON-string error and info responses before applying validation logic.
  • Prevented downgraded warning handling from failing when result.info is returned as a JSON string.
  • Added regression tests for JSON-string validator responses and JSON-formatted validation messages.

Testing

python -m coverage run --source=src -m unittest discover -s tests/unit_tests
...........
........

OK
Ran 65 tests in 74.497s

## Dev Board Ticket

- https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3657

## Changes
- Fixed validation error output so job messages emit parseable JSON with double-quoted keys and strings.
- Added parsing for gtfs-canonical-validator==0.0.9 JSON-string error and info responses before applying validation logic.
- Prevented downgraded warning handling from failing when result.info is returned as a JSON string.
- Added regression tests for JSON-string validator responses and JSON-formatted validation messages.

## Testing
```
python -m coverage run --source=src -m unittest discover -s tests/unit_tests
...........
........

OK
Ran 65 tests in 74.497s
```
@sujata-m
sujata-m requested a review from a team as a code owner June 10, 2026 09:24
@sujata-m
sujata-m requested review from MashB and susrisha June 10, 2026 09:24
@sujata-m
sujata-m merged commit 16f5fbe into dev Jun 10, 2026
4 checks passed

This branch was previously deployed

1 inactive deployment
Development — 91e08ab2 Deployed Jun 10, 2026 by sujata-m via Deploy #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants