From 8982489d8aff05fd9b16fef59f28646185e7c7f3 Mon Sep 17 00:00:00 2001 From: Charlie Tonneslan Date: Mon, 18 May 2026 08:01:18 -0400 Subject: [PATCH] Validate bill citation URLs as URIs The citation block has a url field that wasn't being format-checked like the other url fields in the schema (document url, event url, source url all use format: uri). Signed-off-by: Charlie Tonneslan --- openstates/scrape/schemas/bill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstates/scrape/schemas/bill.py b/openstates/scrape/schemas/bill.py index 50e9b87f..fd9e0b8f 100644 --- a/openstates/scrape/schemas/bill.py +++ b/openstates/scrape/schemas/bill.py @@ -162,7 +162,7 @@ }, "effective": {"type": [fuzzy_date_blank, "null"]}, "expires": {"type": [fuzzy_date_blank, "null"]}, - "url": {"type": ["string", "null"]}, + "url": {"type": ["string", "null"], "format": "uri"}, }, "type": "object", },