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

Render binary request and response bodies #1579

Merged
merged 4 commits into from
Jun 20, 2023

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Jun 19, 2023

The two first commits are cleanups necessary before making the spec rendering work.

The idea is to use a different kind of table when the data is not JSON.

Here is what it looks like for a request (notice that the quotes around the example are removed):

image

This is the same for a response:

Capture d’écran du 2023-06-19 15-45-59

And here is the 200 response of GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId}, with 2 content types:

Capture d’écran du 2023-06-19 15-46-44

Preview: https://pr1579--matrix-spec-previews.netlify.app

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
The schema is not necessary for binary data.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
@zecakeh zecakeh requested a review from a team as a code owner June 19, 2023 14:09
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

looks great, thanks!

@richvdh richvdh merged commit 564444d into matrix-org:main Jun 20, 2023
10 checks passed
@zecakeh zecakeh mentioned this pull request Aug 21, 2023
28 tasks
@zecakeh zecakeh deleted the fix-content-repo branch September 12, 2023 10:10
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.

None yet

2 participants