Skip to content

Commit

Permalink
feat(civicinfo)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### civicinfo:v2

The following keys were deleted:
- schemas.Contest.properties.primaryParty.description
- schemas.Contest.properties.primaryParty.type
  • Loading branch information
yoshi-automation authored and sofisl committed May 2, 2023
1 parent 15bdca3 commit 8f6d8ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions discovery/civicinfo-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
}
}
},
"revision": "20230321",
"revision": "20230418",
"rootUrl": "https://civicinfo.googleapis.com/",
"schemas": {
"AdministrationRegion": {
Expand Down Expand Up @@ -590,10 +590,6 @@
},
"type": "array"
},
"primaryParty": {
"description": "[DEPRECATED] If this is a partisan election, the name of the party it is for. This field as deprecated in favor of the array \"primaryParties\", as contests may contain more than one party.",
"type": "string"
},
"referendumBallotResponses": {
"description": "The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include \"yes\" or \"no\" for referenda. This field is only populated for contests of type 'Referendum'.",
"items": {
Expand Down
4 changes: 0 additions & 4 deletions src/apis/civicinfo/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ export namespace civicinfo_v2 {
* If this is a partisan election, the name of the party/parties it is for.
*/
primaryParties?: string[] | null;
/**
* [DEPRECATED] If this is a partisan election, the name of the party it is for. This field as deprecated in favor of the array "primaryParties", as contests may contain more than one party.
*/
primaryParty?: string | null;
/**
* The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include "yes" or "no" for referenda. This field is only populated for contests of type 'Referendum'.
*/
Expand Down

0 comments on commit 8f6d8ba

Please sign in to comment.