Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: (BREADING CHANGE) spec v1.13 autogen #1981

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

td-famedly
Copy link
Member

No description provided.

@td-famedly td-famedly requested a review from a team as a code owner December 19, 2024 17:10
@td-famedly td-famedly changed the title chore: spec v1.13 autogen chore: (BREADING CHANGE) spec v1.13 autogen Dec 19, 2024
@@ -4648,7 +4693,7 @@ class Api {
if (response.statusCode != 200) unexpectedResponse(response, responseBody);
final responseString = utf8.decode(responseBody);
final json = jsonDecode(responseString);
return ignore(json);
return json as Map<String, Object?>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is weird, I can't find that in the spec text.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec now returns an event_id like this:

{
  "event_id": "$YUwRidLecu:example.com"
}

so returning json is at least not wrong but fetching the string, like we do with the sendMessage method would be better

Copy link
Member

@nico-famedly nico-famedly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this is breading, but apart from the support url changing types, this does not look that breaking.

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.

3 participants