Closed Taybenberg closed 2 years ago
I don't write any of the endpoints/data types by hand (I generate the library from the Swagger/OpenAPI spec that Bungie provides) and the spec does not provide a way to concretely define what types that endpoint should return, nor that that endpoint can return different types. I may revisit this in the rewrite, but this is unfortunately working as intended for the time being.
I recommend downloading the SQLite/JSON definitions and reading from there instead of querying the API.
Destiny2_GetDestinyEntityDefinition request returns only DestinyDefinition base type, but I need specific type (e.g. DestinyActivityDefinition), that inherited from DestinyDefinition type.