-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
/media/v3/preview_url
response spec should include more properties
#1753
Comments
@cperrin88 is this causing a problem in the rendered output? If so, please could you link to the part of the spec that is incorrect? Or is the effect limited to the OpenAPI data? |
I'd say that's up for discussion. I think that the addtional fields might be helpful in the docs as a reference for what might be returned. The more important part for me is the OpenAPI spec. Any client that is created from this spec will not be able to display anything apart from the image data unless manually modified. |
Without a link to the spec doc, I'll be honest that it's unlikely to get much attention. If you have strong opinions, feel free to open a PR which we can use as a basis for discussion. |
What do mean with a link? I thought I had linked all the relevant things. I'd be willing to open a PR. Where would be the best place to ask questions since I am not familiar with the repo? |
Thanks! The Matrix Spec & Docs Authoring room is the best place to discuss updates to the matrix-spec repo. |
Link to problem area:
matrix-spec/data/api/client-server/content-repo.yaml
Lines 774 to 783 in 0b43b5a
Issue
The
/media/v3/preview_url
endpoint spec includes only thematrix:image:size
and theog:image
properties. This means that clients that are based purely on the OpenAPI export, don't expose other OpenGraph properties beyond the image.Expected behaviour
The spec should contain at least the following properties as optional:
og:title
og:type
og:url
og:description
With these properties it is possible to create a useful preview with more than just the image.
OpenGraph: https://ogp.me/
The text was updated successfully, but these errors were encountered: