You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goal / high level use-case
As a developer using OTP and using a SIRI ET/SX Lite feed from an operator, it would be useful to have a way to select a XML or a JSON response type on the router.
Describe the solution you'd like
A solution that could be done is to use a new field adapter that we could select between json and xml the response type for SIRI ET/SX Lite data.
The text was updated successfully, but these errors were encountered:
Jouca
changed the title
SIRI Lite ET/SX response possibility for XML or JSON
SIRI Lite ET/SX response entry possibility for XML or JSON
Jan 29, 2025
We discussed this in a developer meeting today. In general we do not think it is a good idea, because we cannot see any big benefits for providing support for JSON. None of the "core" developers on OTP wanted this, but you may implement it as long as you also maintain it. I am not sure how much extra code it would be to do it. If possible this should be put in a OTP Sandbox.
Points mentioned:
More difficult to validate the data against the schema (not sure if a JSON schema exist for this). And the mapping from XML/XSD to JSON/JSON Schema can be tricky.
Higher maintenance cost
Increased complexity - our primary implementation target XML, and the JSON support is secondary
Is your feature request related to a problem? Please describe.
Currently, SIRI lite ET/SX is taking an XML, however based on the documentation of OTP said on chapter XML - JSON conversion rules for SIRI responses, it's possible to have a case that JSON could be taken.
Goal / high level use-case
As a developer using OTP and using a SIRI ET/SX Lite feed from an operator, it would be useful to have a way to select a XML or a JSON response type on the router.
Describe the solution you'd like
A solution that could be done is to use a new field
adapter
that we could select betweenjson
andxml
the response type for SIRI ET/SX Lite data.The text was updated successfully, but these errors were encountered: