Skip to content

fix(codegen): handle arbitrary object type responses - #310

Merged
matoous merged 1 commit into
mainfrom
md/fix-untyped-objects
Aug 12, 2026
Merged

fix(codegen): handle arbitrary object type responses#310
matoous merged 1 commit into
mainfrom
md/fix-untyped-objects

Conversation

@matoous

@matoous matoous commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Fix typing for arbitrary object responses. I.e. type: object without properties. Previously, we defined such responses as a new type with type Response json.RawMessage which would loose the json.Unmarshaller implementation of json.RawMessage. Change it to type alias type Response = json.RawMessage to keep the unmarshal behavior.

Fixes: #308

Fix typing for arbitrary object responses. I.e. `type: object`
without properties. Previously, we defined such responses as a new
type with `type Response json.RawMessage` which would loose the
`json.Unmarshaller` implementation of `json.RawMessage`. Change
it to type alias `type Response = json.RawMessage` to keep the
unmarshal behavior.

Fixes: #308
@matoous matoous self-assigned this Aug 12, 2026
@matoous
matoous merged commit 02d4f43 into main Aug 12, 2026
14 checks passed
@matoous
matoous deleted the md/fix-untyped-objects branch August 12, 2026 20:41
@sumup-release-bot sumup-release-bot Bot mentioned this pull request Aug 12, 2026
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.

[Bug]: Decode error on Refund response

1 participant