Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

[NO TASK] Fix oneOf comparisons for both Booleans and Numbers #14

Merged
merged 1 commit into from
May 13, 2024

Conversation

simondale00
Copy link

NO TASK

  • Fixes oneOf evaluations for both boolean and number field types

Issue was initially reported in slack (see image below).

It turns out that Eppo evaluates oneOf by casting booleans and numbers to a string. However, Eppo recently introduced a change to the stringValue() method that will return null when the field is a boolean or a string.

image (1)

@simondale00 simondale00 merged commit 9443c5f into main May 13, 2024
2 checks passed
@simondale00 simondale00 deleted the NO-TASK/fix-oneof-evaluation-for-bool-and-number branch May 13, 2024 17:08
@simondale00 simondale00 restored the NO-TASK/fix-oneof-evaluation-for-bool-and-number branch May 13, 2024 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants