This repository has been archived by the owner. It is now read-only.
Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
204 lines (203 sloc) 7.84 KB
{
"description": "bill data",
"properties": {
"_type": { "enum": [ "bill" ], "type": "string" },
"actions": {
"items": {
"properties": {
"action": { "type": "string" },
"actor": { "type": "string" },
"date": { "type": "datetime" },
"related_entities": {
"items": {
"properties": {
"id": { "required": false, "type": "string" },
"name": { "type": "string" },
"type": {
"enum": ["committee", "legislator"],
"type": "string"
}
},
"type": "object"
},
"required": true,
"type": "array"
},
"type": {
"items": {
"enum": [
"bill:introduced",
"bill:passed",
"bill:failed",
"bill:withdrawn",
"bill:substituted",
"bill:filed",
"bill:veto_override:passed",
"bill:veto_override:failed",
"governor:received",
"governor:signed",
"governor:vetoed",
"governor:vetoed:line-item",
"amendment:introduced",
"amendment:passed",
"amendment:failed",
"amendment:tabled",
"amendment:amended",
"amendment:withdrawn",
"committee:referred",
"committee:failed",
"committee:passed",
"committee:passed:favorable",
"committee:passed:unfavorable",
"bill:reading:1",
"bill:reading:2",
"bill:reading:3",
"other"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"alternate_bill_ids": {
"items": { "type": "string" }, "required": false, "type": "array"
},
"alternate_titles": {
"items": { "type": "string" }, "type": "array"
},
"companions": {
"items": {
"properties": {
"bill_id": { "type": "string" },
"session": { "type": "string" },
"chamber": { "enum": [ "upper", "lower" ], "type": ["string", "null"] }
},
"type": "object"
},
"type": "array"
},
"bill_id": { "type": "string" },
"chamber": { "enum": [ "upper", "lower" ], "type": "string" },
"documents": {
"items": {
"properties": {
"mimetype": { "required": false, "type": "string" },
"name": { "type": "string" },
"url": { "type": "string" }
},
"type": "object"
},
"type": "array"
},
"session": { "type": "string" },
"sources": {
"items": {
"properties": {
"url": { "type": "string" }
},
"type": "object"
},
"minItems": 1,
"type": "array"
},
"sponsors": {
"items": {
"properties": {
"chamber": {
"enum": ["upper", "lower"],
"required": false, "type": "string"
},
"name": { "type": "string" },
"type": {
"type": "string", "enum": ["primary", "cosponsor"]
},
"official_type": { "type": "string", "required": false }
},
"type": "object"
},
"type": "array"
},
"subjects": {
"items": { "type": "string" },
"required": false,
"type": "array"
},
"title": { "type": "string" },
"summary": { "type": "string", "blank": true, "required": false },
"type": { "items": { "type": "string" }, "type": "array" },
"versions": {
"items": {
"properties": {
"mimetype": {
"type": "string",
"enum": [
"text/html",
"application/pdf",
"application/msword",
"application/rtf",
"application/octet-stream",
"application/vnd.wordperfect",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
]
},
"name": { "type": "string" },
"title": { "required": false, "type": "string" },
"url": { "blank": true, "type": "string" }
},
"type": "object"
},
"type": "array"
},
"votes": {
"items": {
"properties": {
"_type": { "enum": [ "vote" ],
"type": "string"
},
"chamber": { "enum": [ "upper", "lower", "joint" ],
"type": "string"
},
"committee": { "required": false, "type": "string" },
"date": { "type": "datetime" },
"motion": { "type": "string" },
"no_count": { "minimum": 0, "type": "integer" },
"no_votes": { "items": { "type": "string" }, "type": "array" },
"other_count": { "minimum": 0, "type": "integer" },
"other_votes": { "items": { "type": "string" }, "type": "array" },
"passed": { "type": "boolean" },
"sources": { "items": {
"properties": {
"url": { "type": "string" }
},
"type": "object"
},
"type": "array"
},
"type": {
"enum": [
"passage",
"reading",
"reading:1",
"reading:2",
"reading:3",
"veto_override",
"amendment",
"other"
],
"required": false,
"type": "string"
},
"yes_count": { "minimum": 0, "type": "integer" },
"yes_votes": { "items": { "type": "string" }, "type": "array" }
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}