Skip to content

feat: allowing null/missing default values #1511

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

Merged
merged 5 commits into from
Jul 28, 2025

Conversation

Rahul-Baradol
Copy link
Member

This PR

  • supports missing/null default values, by returning FLAG_NOT_FOUND,
    • for flag configurations missing a defaultValue, and
    • for which targeting doesn't resolve a variant and there is no defaultValue

Related Issues

Fixes #1438

Copy link
Member

@guidobrei guidobrei left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, @Rahul-Baradol.
I've added some comments on things that cached my attention.

Wondreing what the Gherkin tests will reveal.

@toddbaert
Copy link
Member

@Rahul-Baradol if it's any help, here is my JS implementation of the same thing. I'm happy to add the e2e tests here once your implementation is complete, so you can ignore that part.

@beeme1mr beeme1mr changed the title feat!: allowing null/missing default values feat: allowing null/missing default values Jul 16, 2025
@beeme1mr
Copy link
Member

FYI, I've updated the title to remove the ! since this isn't a breaking change.

@aepfli
Copy link
Member

aepfli commented Jul 23, 2025

@Rahul-Baradol i hope you dont mind me fixing your conflict, and activating our e2e test suite for your feature. Now this code runs against the e2e tests which we are also using in other languages.

@Rahul-Baradol
Copy link
Member Author

Sure, I don't have issues !

@aepfli aepfli merged commit 229ddcb into open-feature:main Jul 28, 2025
5 checks passed
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.

[flagd] Update in-process Evaluation To Allow undefined or null defaultValue
8 participants