Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from spotify/reasons
Browse files Browse the repository at this point in the history
Add more Reasons according to specs
  • Loading branch information
nicklasl authored Jun 1, 2023
2 parents 239d101 + a5b0f9c commit 7b49997
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Sources/OpenFeature/Reason.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import Foundation

public enum Reason: String {
/// The resolved value was the result of the flag being disabled in the management system.
case disabled
/// The resolved value was the result of pseudorandom assignment.
case split
/// The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting.
case targetingMatch
/// The resolved value is static (no dynamic evaluation).
case staticReason
/// The resolved value was configured statically, or otherwise fell back to a pre-configured value.
case defaultReason
/// The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting.
case targetingMatch
/// The resolved value was the result of pseudorandom assignment.
case split
/// The resolved value was retrieved from cache.
case cached
/// The resolved value was the result of the flag being disabled in the management system.
case disabled
/// The reason for the resolved value could not be determined.
case unknown
/// The resolved value is non-authoritative or possible out of date
Expand Down

0 comments on commit 7b49997

Please sign in to comment.