open-feature / open-feature/cpp-sdk-contrib

[flagd] Soft JSONSchema validation

Open
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2
Forks
3
Avg merge
1d 3h
Merged PRs (30d)
5

Description

Currently if the incoming message is not correct based on the jsonschema, the whole message is rejected. This behavior is not aligned with the rest of the implementations, which accept and serve those flags that are correct. This also breaks our Gherkin test suite.

We need to analyze the behavior and checks from other languages, and implement same behavior here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the JSON-schema checks and accepted-flag behavior in the other language implementations, then trace the C++ flagd message validation path. Reproduce the failing Gherkin case and verify malformed messages preserve valid flags while rejecting only invalid ones; the Gherkin suite should pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend-api-design, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.