Skip to content

Parse the media_details JSON into concrete instances #750

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

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

crazytonyli
Copy link
Contributor

@crazytonyli crazytonyli commented May 29, 2025

The media_details property is declared as JsonValue at the moment. This PR changes it to be a concrete MediaDetails type. The new type provides a function fn parse_as_mime_type(mime_type: String) to return a concrete instance that contains the media metadata.

Website Example App

@crazytonyli crazytonyli requested review from oguzkocer and jkmassel May 29, 2025 10:29
@crazytonyli crazytonyli force-pushed the parse-media-details branch from 8bc8afb to 303184a Compare May 30, 2025 00:26
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