Henrik-3 / unofficial-valorant-api

Unofficial VALORANT API using the VALORANT Ingame API
442 stars 19 forks source link

c# open Api generator, exception on null for integers, from the specification #41

Closed M-U-X closed 5 months ago

M-U-X commented 2 years ago

the api specifications defines non nullable integers for things like, stats headshot, legshots, bodyshots, and similar data that could have a value of null, resulting in exceptions on json deserialization, to replicate generate a client using openapi generator from the specification json file, and test it on a match with a player with 0 hs or any similar "nullable" integer

Henrik-3 commented 2 years ago

I take a look at it

M-U-X commented 2 years ago

@Henrik-3 same for session playtime, match "37d97018-a793-4080-8594-a02c051113c3" , players> allplayers[7], both seconds and millisecond are returned as null, and in fact minutes doesn't even exist