Skip to content

Expand media matching conditions. - #9

Merged
samuel-williams-shopify merged 3 commits into
mainfrom
expand-conditional-logic
Aug 8, 2026
Merged

Expand media matching conditions.#9
samuel-williams-shopify merged 3 commits into
mainfrom
expand-conditional-logic

Conversation

@samuel-williams-shopify

@samuel-williams-shopify samuel-williams-shopify commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Replace compound media matching and validation expressions with explicit control flow and brief comments describing each rule.

This expands:

  • Media range component matching and equality.
  • Media range and concrete type wildcard validation.
  • Existing set coercion and set membership decisions.

It also corrects wildcard semantics so that * acts as a wildcard only when it is the complete type or subtype component. Embedded stars remain literal HTTP token characters, with focused coverage for values such as te*t/ht*l and text/*+json.

All tests, RuboCop checks, and Decode documentation coverage pass locally.

@samuel-williams-shopify
samuel-williams-shopify merged commit c7f22dd into main Aug 8, 2026
28 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the expand-conditional-logic branch August 8, 2026 08:54
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