Skip to content

Fix CBOR deserializer crash on empty input for no-input operations#1103

Open
praguna14 wants to merge 1 commit intosmithy-lang:mainfrom
praguna14:main
Open

Fix CBOR deserializer crash on empty input for no-input operations#1103
praguna14 wants to merge 1 commit intosmithy-lang:mainfrom
praguna14:main

Conversation

@praguna14
Copy link
Copy Markdown

  • CborDeserializer.readStruct() crashes with "Can't read FINISHED as a struct" when deserializing operations that have no input members (empty request body)
  • The CBOR parser returns FINISHED for empty input, but readStruct only accepted START_OBJECT. Fixed by returning early when the token is FINISHED, skipping deserialization for empty input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant