Skip to content

ext: support Extension.Subset in ExtensionOptionFactory and ext libraries - #1678

Open
itzPranshul wants to merge 2 commits into
cel-expr:masterfrom
itzPranshul:feat/ext-extension-subset
Open

itzPranshul wants to merge 2 commits into
cel-expr:masterfrom
itzPranshul:feat/ext-extension-subset

Conversation

@itzPranshul

@itzPranshul itzPranshul commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to the cel LibrarySubsetter PR (for #1131), wiring Extension.Subset into ext.ExtensionOptionFactory and the ext/ libraries.

Changes

  • ext/ libraries: Added *Subset(*env.LibrarySubset) options and LibrarySubset() *env.LibrarySubset methods to Bindings, TwoVarComprehensions, Encoders, Lists, Markdown, Math, Protos, Regex, Sets, and Strings.
  • ext/extension_option_factory.go: Updated all registered extension factories (including cel.lib.ext.markdown) to pass ext.Subset.
  • ext/extension_option_factory_test.go: Added TestExtensionOptionFactorySubset covering function/macro exclusion, ToConfig() round-trip, Disabled, and invalid subset errors.

Refs #1131

@itzPranshul itzPranshul changed the title Feat/ext extension subset ext: support Extension.Subset in ExtensionOptionFactory and ext libraries Nov 20, 2026
@itzPranshul

Copy link
Copy Markdown
Contributor Author

I've Kept the PRs atomic to make reviewing easier, this one is stacked on #1677 which needs to land first then i'll rebase onto master. That said, commit 41d2abc is ready for a review here.

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