From 218fd82f1d37844f26ec22418655a44395fbd3f4 Mon Sep 17 00:00:00 2001 From: Michael Beemer Date: Fri, 26 Jul 2024 11:57:23 -0400 Subject: [PATCH 1/2] add optional targeting key property (#30) Signed-off-by: Michael Beemer --- service/openapi.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/service/openapi.yaml b/service/openapi.yaml index 865e02b..d7ee822 100644 --- a/service/openapi.yaml +++ b/service/openapi.yaml @@ -29,7 +29,7 @@ paths: tags: [OFREP core] summary: OFREP single flag evaluation contract description: | - OFREP single flag evaluation request. + OFREP single flag evaluation request. The endpoint is called by the server providers to perform single flag evaluation. parameters: - name: key @@ -86,8 +86,8 @@ paths: tags: [OFREP core] summary: OFREP bulk flag evaluation contract description: | - OFREP bulk evaluation request. - The endpoint is called by the client providers to perform single flag evaluation. + OFREP bulk evaluation request. + The endpoint is called by the client providers to evaluate all flags at once. parameters: - in: header name: If-None-Match @@ -145,7 +145,7 @@ paths: tags: [OFREP extensions] summary: OFREP provider configuration description: | - OFREP configuration is used to supply information about the remote flag management system and to set up the OpenFeature SDK providers. + OFREP configuration is used to supply information about the remote flag management system and to set up the OpenFeature SDK providers. The providers will contact this endpoint only if the client has opted in. parameters: - in: header @@ -290,6 +290,13 @@ components: context: type: object description: Context information for flag evaluation + properties: + targetingKey: + type: string + description: A string logically identifying the subject of evaluation (end-user, service, etc). + examples: + - user-123 + additionalProperties: true booleanFlag: description: A boolean typed flag value properties: From deaec3d57dd9089f118a88410a10f04fc8f3852b Mon Sep 17 00:00:00 2001 From: Roman Dmytrenko Date: Fri, 6 Sep 2024 22:21:33 +0300 Subject: [PATCH 2/2] fix: use correct header name for 429 bulk response (#32) Signed-off-by: Roman Dmytrenko --- service/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/openapi.yaml b/service/openapi.yaml index d7ee822..1e758ea 100644 --- a/service/openapi.yaml +++ b/service/openapi.yaml @@ -127,7 +127,7 @@ paths: '429': description: Rate limit reached on the Flag Management System headers: - Retry-Later: + Retry-After: description: Indicates when to retry the request again schema: type: string