[BUG]: Inconsistent data type for Campaign IDs (int32/int64) #85
Labels
bug
Something isn't working
good first issue
Good for newcomers
mapping
This issue or it's solution is related to how information is mapped
PR ready
This issue is approved and ready to be worked on.
Link to faulty endpoint
https://helldivers-2.github.io/
The name of your client/application
n/a
Request information
n/a
Steps to reproduce
Campaign.Id
(raw type) ->$int32
Campaign2.Id
(parsed type) ->$int32
Event.campaignId
->$int64
What is expected?
Campaign IDs across all endpoints should be of equal type.
What is actually happening?
Campaign ID types from
/raw/api/WarSeason/801/Status
and/api/v1/campaigns
match (bothint32
), but the type from/api/v1/planet-events
(int64
) falls out of line.System Info
Any additional comments?
I am pretty confident that the game will never reach a point where the campaign IDs will exceed the limits of
int32
, so it should be safe to useint32
for client applications.Still, this is an inconsistency in the OpenAPI schema and should be fixed.
The text was updated successfully, but these errors were encountered: