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

Add _or_defaults versions of the format-specific parameters parsing functions #426

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

garethsb
Copy link
Contributor

@garethsb garethsb commented Jan 7, 2025

Add _or_defaults versions of the format-specific parameters parsing functions; the current functions throw when required parameters are omitted. The intention is the new functions are for parsing partial fmtp lines, not handling invalid values, so they can still throw in those circumstances.

I should probably add _or_defaults versions for the other three media types even though none of those have required parameters, just so the naming and intended usage is clear?

Since an 'empty' fmtp attribute would appear the same at this abstraction, it's better to rely on reporting omission of specific required format-specific parameters
…equired parameters are omitted - these functions still throw if they encounter invalid values
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