vrchatapi / specification

⚙️ VRChat API OpenAPI specification defining the API in a machine-readable format. This is then used for automatic generation of language-specific SDK's
MIT License
49 stars 30 forks source link

User object in websocket events is missing `platform` field #378

Closed Rexios80 closed 2 months ago

Rexios80 commented 2 months ago
CheckedFromJsonException (CheckedFromJsonException
Could not create `User`.
There is a problem with "platform".
Required keys are missing: platform.)
$checkKeys (/Users/rexios/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/lib/src/allowed_keys_helpers.dart:28)
_$UserFromJson.<anonymous closure> (/Users/rexios/repos/vrchatapi-dart/vrchat_dart_generated/lib/src/model/user.g.dart:15)
$checkedCreate.<anonymous closure> (/Users/rexios/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/lib/src/checked_helpers.dart:33)
$checkedNew (/Users/rexios/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/lib/src/checked_helpers.dart:51)
$checkedCreate (/Users/rexios/.pub-cache/hosted/pub.dev/json_annotation-4.9.0/lib/src/checked_helpers.dart:30)
_$UserFromJson (/Users/rexios/repos/vrchatapi-dart/vrchat_dart_generated/lib/src/model/user.g.dart:11)
new User.fromJson (/Users/rexios/repos/vrchatapi-dart/vrchat_dart_generated/lib/src/model/user.dart:261)
_$FriendActiveEventFromJson (/Users/rexios/repos/vrchatapi-dart/vrchat_dart/lib/src/model/streaming/vrc_streaming_event.g.dart:45)
new FriendActiveEvent.fromJson (/Users/rexios/repos/vrchatapi-dart/vrchat_dart/lib/src/model/streaming/vrc_streaming_event.dart:229)
VrcStreaming._handleWebsocketEvent (/Users/rexios/repos/vrchatapi-dart/vrchat_dart/lib/src/streaming/vrc_streaming.dart:93)
_RootZone.runUnaryGuarded (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/zone.dart:1609)
_BufferingStreamSubscription._sendData (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_impl.dart:366)
_BufferingStreamSubscription._add (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_impl.dart:297)
_SyncStreamControllerDispatch._sendData (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_controller.dart:777)
_StreamController._add (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_controller.dart:651)
_StreamController.add (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_controller.dart:606)
_RootZone.runUnaryGuarded (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/zone.dart:1609)
_BufferingStreamSubscription._sendData (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_impl.dart:366)
_BufferingStreamSubscription._add (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_impl.dart:297)
_SyncStreamControllerDispatch._sendData (/Users/rexios/repos/flutter/bin/cache/pkg/sky_engine/lib/async/stream_controller.dart:777)