Repository navigation
feat: allowing null/missing defaultValue - #1659
Conversation
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
✅ Deploy Preview for polite-licorice-3db33c canceled.
|
|
Hey @Rahul-Baradol, thanks a lot! This looks like it's on the right track. I think before we can merge it though, we need to update the schema as mentioned in this issue, so configurations like this are seen as valid (that will be a different PR though). Apart from that, could you add a test or two to assert that FLAG_NOT_FOUND is returned in both of the cases you mention in your description:
EDIT: Oh, I see you also did open-feature/flagd-schemas#186, great! I will review that as well. |
|
Sure will add tests! |
|
@Rahul-Baradol I will update this PR with the new schema once it's released, you won't have to do that, the submodule stuff can get a bit messy. Just work on adding the test for now. It's no rush though, we might have to delay merging this one until we have some other related work done as well. |
|
Got it! |
Signed-off-by: Rahul Baradol <rahul.baradol.14@gmail.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
|
@Rahul-Baradol I've updated the schema submodule to https://github.com/open-feature/flagd-schemas/releases/tag/json%2Fjson-schema-v0.2.12, and I'm merging this. This means you will be able to use this feature locally in flagd. HOWEVER, because we have not yet published the new schema at the canonical location here, editors/validators will still see missing I've also removed the Thanks a lot for your help! |
🤖 I have created a release *beep* *boop* --- <details><summary>flagd: 0.12.6</summary> ## [0.12.6](flagd/v0.12.5...flagd/v0.12.6) (2025-07-10) ### 🐛 Bug Fixes * **security:** update module github.com/go-viper/mapstructure/v2 to v2.3.0 [security] ([#1667](#1667)) ([caa0ed0](caa0ed0)) ### ✨ New Features * add sync_context to SyncFlags ([#1642](#1642)) ([07a45d9](07a45d9)) </details> <details><summary>flagd-proxy: 0.7.5</summary> ## [0.7.5](flagd-proxy/v0.7.4...flagd-proxy/v0.7.5) (2025-07-10) ### 🐛 Bug Fixes * **security:** update module github.com/go-viper/mapstructure/v2 to v2.3.0 [security] ([#1667](#1667)) ([caa0ed0](caa0ed0)) ### ✨ New Features * add sync_context to SyncFlags ([#1642](#1642)) ([07a45d9](07a45d9)) </details> <details><summary>core: 0.11.6</summary> ## [0.11.6](core/v0.11.5...core/v0.11.6) (2025-07-10) ### ✨ New Features * add sync_context to SyncFlags ([#1642](#1642)) ([07a45d9](07a45d9)) * allowing null/missing defaultValue ([#1659](#1659)) ([3f6b78c](3f6b78c)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR
Related Issues
Fixes #1647
Notes
Points to be noted...
defaultValueand no targetting rules, thenFlagNotFoundis returneddefaultValue, thenFlagNotFoundis returned