Skip to content

Commit

Permalink
docs/examples/example.json: Remove consultationMeetings.publicOfficial
Browse files Browse the repository at this point in the history
  • Loading branch information
duncandewhurst committed Nov 14, 2023
1 parent f6657ab commit 435d3d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
12 changes: 1 addition & 11 deletions docs/examples/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -1019,17 +1019,7 @@
"countryName": "United Kingdom"
},
"date": "2024-01-15T00:00:00Z",
"numberOfParticipants": "25",
"publicOfficial": {
"person": {
"name": "Brett Gliddon"
},
"organization": {
"name": "Motorways UK",
"id": "GB-GOR-XX1234"
},
"jobTitle": "Group General Manager Transport Services"
}
"numberOfParticipants": "25"
}
]
}
Expand Down
12 changes: 1 addition & 11 deletions docs/reference/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,6 @@ Each `OrganizationReference` has the following fields:
:title: lobbyingMeetings/0/publicOfficial/organization
```
```{jsoninclude} ../../docs/examples/example.json
:jsonpointer: /projects/0/social/consultationMeetings/0/publicOfficial/organization
:title: social/consultationMeetings/0/publicOfficial/organization
```
````
`````
Expand All @@ -585,8 +580,8 @@ 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/address`](project-schema.json,/definitions/Meeting,address)
* [`Person/address`](project-schema.json,/definitions/Person,address)
* [`Meeting/address`](project-schema.json,/definitions/Meeting,address)

Each `Address` has the following fields:

Expand Down Expand Up @@ -1174,11 +1169,6 @@ Each `PublicOfficial` has the following fields:
:title: lobbyingMeetings/0/publicOfficial
```
```{jsoninclude} ../../docs/examples/example.json
:jsonpointer: /projects/0/social/consultationMeetings/0/publicOfficial
:title: social/consultationMeetings/0/publicOfficial
```
````
`````
Expand Down
3 changes: 2 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ def update_sub_schema_reference(schema):
'metrics/0/observations/0/value',
'parties/0/beneficialOwners/0',
'parties/0/people/0/address',
'parties/0/people/0/identifier']
'parties/0/people/0/identifier',
'social/consultationMeetings/0/publicOfficial']

# Add examples
definition["references"] = get_definition_references(schema, defn)
Expand Down

0 comments on commit 435d3d0

Please sign in to comment.