Closed MaximeAnsquer closed 1 month ago
We should discuss this on the friday meeting. Currently the country name and code are included indirectly using a ref to an address which then includes country name and code,
unfortunately the swager editor does not show the inheritance structure clearly.
To be discussed as soon as Rail Europe attends the meeting.
TODO Place subtypes' ref should have type ref.
Example how StopPlace has country associated via ref
GET /places/urn:uic:stn:5454212
{
"objectType": "StopPlace",
"id": "urn:uic:stn:5454212",
"alternativeIds": [
"urn:x_bileto:stn:703bc6a3-1625-4d13-8cc6-5bb1cc44222d"
],
"geoPosition": null,
"_links": null,
"ref": {
"objectType": "AddressRef",
"addressRef": "urn:x_bileto:example:1"
},
"name": "Liberec"
}
GET /places/urn:x_bileto:example:1
{
"objectType": "Address",
"id": "urn:x_bileto:example:1",
"countryCode" : "CZ"
"countryName": "Czechia"
}
Hello, I work at Rail Europe, and we would like to suggest adding two new fields to the
Place
object.Field name timezone Field type
string
following the Tz_database format Example valueEurope/Paris
Field name country Field type Object with two fields
name
andcode
Example valueWhat do you think? I am not sure about the process I should follow to suggest changes. Should I open a pull request? Please let me to know how to proceed properly. Thanks in advance.