From 21635df21cfd7ef31b42221c2ebd3804efd904c1 Mon Sep 17 00:00:00 2001 From: Thomas Poignant Date: Tue, 11 Jun 2024 09:45:17 +0200 Subject: [PATCH] feat!: Reverse the logic for supportedTypes (#24) * feat!: Reverse the logic for supportedTypes Signed-off-by: Thomas Poignant * fix Signed-off-by: Thomas Poignant --------- Signed-off-by: Thomas Poignant --- service/openapi.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/service/openapi.yaml b/service/openapi.yaml index 448d267..cbda1b2 100644 --- a/service/openapi.yaml +++ b/service/openapi.yaml @@ -358,14 +358,17 @@ components: type: object description: Configurations specific for flag evaluations in OFREP provider implementation properties: - unsupportedTypes: - description: A list of unsupported types by the flag management system. Evaluating a flag of a listed type through OFREP provider will result in an error and yield the default value. + supportedTypes: + description: | + Evaluating a flag of unlisted type through the OFREP provider will result in an error and yield the default value. + However, when supportedTypes is undefined/empty, provider assumes that all flag evaluation types are supported by the flag management system type: array items: type: string enum: [int, float, string, boolean, object] examples: - ["object", "int", "float"] + - null featureCacheInvalidation: type: object description: Configuration for the cache cacheInvalidation