Skip to content

Commit

Permalink
apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjen committed Nov 14, 2023
1 parent b14f927 commit 47d03b2
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 41 deletions.
22 changes: 11 additions & 11 deletions docs/_static/i18n.csv
Original file line number Diff line number Diff line change
Expand Up @@ -370,20 +370,20 @@ lobbyingMeetings,Lobbying meetings,False,
lobbyingMeetings,Meeting,False,
lobbyingMeetings/id,ID,True,
lobbyingMeetings/date,Date,False,
lobbyingMeetings/location,Location,False,
lobbyingMeetings/location,Address,False,
lobbyingMeetings/location/streetAddress,Street address,True,
lobbyingMeetings/location/locality,Locality,True,
lobbyingMeetings/location/region,Region,True,
lobbyingMeetings/location/postalCode,Postal code,True,
lobbyingMeetings/location/countryName,Country name,True,
lobbyingMeetings/address,Address,False,
lobbyingMeetings/address,Address,False,
lobbyingMeetings/address/streetAddress,Street address,True,
lobbyingMeetings/address/locality,Locality,True,
lobbyingMeetings/address/region,Region,True,
lobbyingMeetings/address/postalCode,Postal code,True,
lobbyingMeetings/address/countryName,Country name,True,
lobbyingMeetings/numberOfParticipants,Participant count,False,
lobbyingMeetings/publicOfficial,Public official,False,
lobbyingMeetings/publicOfficial,Public official,False,
lobbyingMeetings/publicOfficial/person,Person.,False,
lobbyingMeetings/publicOfficial/person/name,Name,True,
lobbyingMeetings/publicOfficial/person/organization,Organization,False,
lobbyingMeetings/publicOfficial/person/organization,Organization reference,False,
lobbyingMeetings/publicOfficial/person/organization/name,Organization name,True,
lobbyingMeetings/publicOfficial/person/organization/id,Organization ID,True,
lobbyingMeetings/publicOfficial/organization,Organization,False,
lobbyingMeetings/publicOfficial/organization,Organization reference,False,
lobbyingMeetings/publicOfficial/organization/name,Organization name,True,
lobbyingMeetings/publicOfficial/organization/id,Organization ID,True,
lobbyingMeetings/publicOfficial/jobTitle,Job title,True,
10 changes: 5 additions & 5 deletions docs/examples/blank.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,11 @@
"numberOfParticipants": "integer",
"publicOfficial": {
"person": {
"name": "string",
"organization": {
"id": "string",
"name": "string"
}
"name": "string"
},
"organization": {
"id": "string",
"name": "string"
},
"jobTitle": "string"
}
Expand Down
10 changes: 5 additions & 5 deletions docs/examples/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -974,11 +974,11 @@
"numberOfParticipants": 4,
"publicOfficial": {
"person": {
"name": "Brett Gliddon",
"organization": {
"name": "Motorways UK",
"id": "GB-GOR-XX1234"
}
"name": "Brett Gliddon"
},
"organization": {
"name": "Motorways UK",
"id": "GB-GOR-XX1234"
},
"jobTitle": "Group General Manager Transport Services"
}
Expand Down
5 changes: 1 addition & 4 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
* `.transactions`
* `.milestones`
* `ContractingProcesses.milestones`
* [#428](https://github.com/open-contracting/infrastructure/pull/428) - add objects:
* `Meeting`
* `lobbyingMeetings`
* `PublicOfficial`
* [#428](https://github.com/open-contracting/infrastructure/pull/428) - add `lobbyingMeetings` field.

### Codelists

Expand Down
16 changes: 8 additions & 8 deletions docs/reference/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ This sub-schema is referenced by the following properties:
* [`BudgetBreakdown/sourceParty`](project-schema.json,/definitions/BudgetBreakdown,sourceParty)
* [`Transaction/payer`](project-schema.json,/definitions/Transaction,payer)
* [`Transaction/payee`](project-schema.json,/definitions/Transaction,payee)
* [`PublicOfficial/person/organization`](project-schema.json,/definitions/PublicOfficial,person/organization)
* [`PublicOfficial/organization`](project-schema.json,/definitions/PublicOfficial,organization)

Each `OrganizationReference` has the following fields:

Expand Down Expand Up @@ -558,8 +558,8 @@ Each `OrganizationReference` has the following fields:
```
```{jsoninclude} ../../docs/examples/example.json
:jsonpointer: /projects/0/lobbyingMeetings/0/publicOfficial/person/organization
:title: lobbyingMeetings/0/publicOfficial/person/organization
:jsonpointer: /projects/0/lobbyingMeetings/0/publicOfficial/organization
:title: lobbyingMeetings/0/publicOfficial/organization
```
````
Expand All @@ -580,7 +580,7 @@ When working with data, users ought to be aware that addresses might not always
This sub-schema is referenced by the following properties:
* [`Location/address`](project-schema.json,/definitions/Location,address)
* [`Organization/address`](project-schema.json,/definitions/Organization,address)
* [`Meeting/location`](project-schema.json,/definitions/Meeting,location)
* [`Meeting/address`](project-schema.json,/definitions/Meeting,address)

Each `Address` has the following fields:

Expand Down Expand Up @@ -609,8 +609,8 @@ Each `Address` has the following fields:
```
```{jsoninclude} ../../docs/examples/example.json
:jsonpointer: /projects/0/lobbyingMeetings/0/location
:title: lobbyingMeetings/0/location
:jsonpointer: /projects/0/lobbyingMeetings/0/address
:title: lobbyingMeetings/0/address
```
````
Expand Down Expand Up @@ -1107,7 +1107,7 @@ Each `Meeting` has the following fields:
```{jsonschema} ../../build/current_lang/project-schema.json
:pointer: /definitions/Meeting
:collapse: id,date,location,numberOfParticipants,publicOfficial
:collapse: id,date,address,numberOfParticipants,publicOfficial
:addtargets:
```
Expand Down Expand Up @@ -1142,7 +1142,7 @@ Each `PublicOfficial` has the following fields:
```{jsonschema} ../../build/current_lang/project-schema.json
:pointer: /definitions/PublicOfficial
:collapse: jobTitle
:collapse: organization,jobTitle
:addtargets:
```
Expand Down
16 changes: 8 additions & 8 deletions schema/project-level/project-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2029,9 +2029,9 @@
],
"format": "date-time"
},
"location": {
"title": "Location",
"description": "The location of the meeting.",
"address": {
"title": "Address",
"description": "The address of the meeting.",
"$ref": "#/definitions/Address"
},
"numberOfParticipants": {
Expand Down Expand Up @@ -2064,14 +2064,14 @@
"title": "Name",
"description": "The full name of the person.",
"type": "string"
},
"organization": {
"title": "Organization",
"description": "The organization in respect of which the person is a public official.",
"$ref": "#/definitions/OrganizationReference"
}
}
},
"organization": {
"title": "Organization",
"description": "The organization in respect of which the person is a public official.",
"$ref": "#/definitions/OrganizationReference"
},
"jobTitle": {
"title": "Job title",
"description": "The job title of the person with respect to the organization.",
Expand Down

0 comments on commit 47d03b2

Please sign in to comment.