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

Use patterns instead of namespace literals for codegen #1649

Open
wants to merge 7 commits into
base: series/0.18
Choose a base branch
from

Conversation

msosnicki
Copy link
Contributor

@msosnicki msosnicki commented Feb 11, 2025

PR Checklist (not all items are relevant to all PRs)

closes #1586

  • Added unit-tests (for runtime code)
  • Added bootstrapped code + smoke tests (when the rendering logic is modified)
  • Added build-plugins integration tests (when reflection loading is required at codegen-time)
  • Added alloy compliance tests (when simpleRestJson protocol behaviour is expanded/updated)
  • Updated dynamic module to match generated-code behaviour
  • Added documentation
  • Updated changelog

Comment on lines 29 to 30
allowedNS: Option[Set[NamespacePattern]],
excludedNS: Option[Set[NamespacePattern]],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is not source compatible and CodegenArgs is very much part of the public API. Let's leave it as String please

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could've done an additional apply method with the new signature tbh

Baccata
Baccata previously approved these changes Feb 12, 2025
@Baccata Baccata dismissed their stale review February 12, 2025 08:41

a bit too quick

@msosnicki msosnicki marked this pull request as ready for review February 12, 2025 09:02
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.

Allow to exclude nested namespaces
3 participants