Shard schema
Bill shard
A Parliament bill. Carries session, sponsor, status, stages with dates, amendment count, and linked records (divisions, evidence, statements). Sourced from the Bills API.
This page is the field reference for developers and AI clients. If you came here looking for a bill, browse the bill index instead.
Required fields
8
Optional fields
7
Dialect
JSON Schema draft 2020-12
Version
Required fields
Every shard validating against bill@0.1.0 ships these fields. Provenance lines show where each value comes from — the load-bearing column for the structured-evidence promise.
-
slugstring<slug>URL-safe bill identifier.
Provenance: Derived from displayName + session at admission.
-
displayNamestringBill name.
Provenance: Bills API shortTitle.
-
officialIdstringBills API billId.
Provenance: Bills API billId verbatim.
-
sessionstringParliamentary session.
Provenance: Bills API session field.
-
canonicalUrlstring<URL>Live bill page on bills.parliament.uk.
Provenance: Constructed from the Bills API billId via the documented URL template at intake.
-
billTypeenum (4 values)Bill sub-type.
governmentprivate_membersprivatehybrid
Provenance: Bills API billType.
-
statusstringCurrent stage / status.
Provenance: Bills API currentStage.description.
-
provenanceobjectProvenance for the bill snapshot.
Provenance: Emitted by intake at bill-snapshot refresh.
Optional fields
Present where the source carries the value or the derivation succeeds. Code consuming this schema should treat them as nullable.
-
sponsorobject · optionalBill sponsor.
Provenance: Bills API sponsors[0] (or peer equivalent).
-
introducedAtstring<ISO 8601> · optionalIntroduction date.
Provenance: Bills API stages[firstReading].date.
-
royalAssentDatestring<ISO 8601> · optionalRoyal Assent date if granted.
Provenance: Bills API royalAssent.date.
-
stagesarray<object> · optionalStages with dates and outcomes.
Provenance: Bills API stages array.
-
amendmentCountinteger · optionalTotal amendments tabled.
Provenance: Count of rows from the Bills API amendments endpoint.
-
recentRecordsarray<object> · optionalRecent records linked to this bill (divisions, evidence, statements).
Provenance: Records linked to this bill via the per-record entity links, ordered by published date.
-
outboundSourcesarray<object> · optionalExternal source links.
Provenance: Bills API.
Source families for planned bill data
The following real source-family taxonomy is associated with bill@0.1.0. Click through for metadata and publication status.
Related schemas
Entities referenced by this shard kind. A bill shard's entities[] / nested references resolve to shards of these kinds.
Versioning + dialect
Each planned schema follows semver. Patch bumps are additive and backwards-compatible. Minor bumps may add required fields or change validation rules. Major bumps will use a new URL path once canonical files are published.
Published structured data will declare its version in a $schema field. AI clients should respect that version when files become available.