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

feat: make flags property mandatory for bulk evaluation success response #27

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

Kavindu-Dodan
Copy link
Contributor

@Kavindu-Dodan Kavindu-Dodan commented Jun 25, 2024

Background

bulkEvaluationSuccess right now only defines flags property. This is the main property the response is expected to contain.

Proposal

With this PR, I have made the flags property mandatory in the bulk evaluation response. This confirms to the current JavaScript implementation [1] where flags is required to make the response a valid one.

[1] - https://github.com/open-feature/js-sdk-contrib/blob/ofrep-core-v0.1.5/libs/shared/ofrep-core/src/lib/model/bulk-evaluation.ts#L32-L38

Copy link
Member

@lukas-reining lukas-reining left a comment

Choose a reason for hiding this comment

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

That's an important one! :)

@Kavindu-Dodan Kavindu-Dodan merged commit 18db9b2 into main Jun 25, 2024
5 checks passed
@Kavindu-Dodan Kavindu-Dodan deleted the chore/make-flags-mandatory branch June 25, 2024 19:05
toddbaert pushed a commit to open-feature/flagd that referenced this pull request Jun 27, 2024
This PR improves flagd bulk evaluation empty response by adding required
`flags` property.

Related - open-feature/protocol#27

Signed-off-by: Kavindu Dodanduwa <[email protected]>
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.

3 participants