Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 34 additions & 7 deletions service/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ components:
oneOf:
- $ref: "#/components/schemas/evaluationSuccess"
- $ref: '#/components/schemas/evaluationFailure'
metadata:
$ref: "#/components/schemas/metadata"
description: Arbitrary metadata for the flag set, useful for telemetry and documentary purposes.
examples:
- flagSetId: holidaySales
version: v12
bulkEvaluationFailure:
description: Bulk evaluation failure response
properties:
Expand Down Expand Up @@ -244,13 +250,10 @@ components:
type: string
description: Variant of the evaluated flag value
metadata:
type: object
additionalProperties:
oneOf:
- type: boolean
- type: string
- type: number
description: Arbitrary metadata supporting flag evaluation
allOf:
- $ref: "#/components/schemas/metadata"
- $ref: "#/components/schemas/flagMetadataDescription"
- $ref: "#/components/schemas/flagMetadataExamples"
- oneOf:
- $ref: "#/components/schemas/booleanFlag"
- $ref: "#/components/schemas/stringFlag"
Expand All @@ -268,6 +271,11 @@ components:
description: OpenFeature compatible error code. See https://openfeature.dev/specification/types#error-code
errorDetails:
$ref: '#/components/schemas/errorDetails'
metadata:
allOf:
- $ref: "#/components/schemas/metadata"
- $ref: "#/components/schemas/flagMetadataDescription"
- $ref: "#/components/schemas/flagMetadataExamples"
required:
- key
- errorCode
Expand All @@ -281,6 +289,11 @@ components:
enum: [ FLAG_NOT_FOUND ]
errorDetails:
$ref: '#/components/schemas/errorDetails'
metadata:
allOf:
- $ref: "#/components/schemas/metadata"
- $ref: "#/components/schemas/flagMetadataDescription"
- $ref: "#/components/schemas/flagMetadataExamples"
required:
- key
- errorCode
Expand Down Expand Up @@ -421,3 +434,17 @@ components:
examples:
- 1000
description: number (in millisecond) to wait before invalidating the cache. If we have cacheInvalidation enabled, the cache can also be evicted if a configuration change happen.
metadata:
type: object
additionalProperties:
oneOf:
- type: boolean
- type: string
- type: number
flagMetadataExamples:
examples:
- team: ecommerce
businessPurpose: experiment
flagMetadataDescription:
description: Arbitrary metadata for the flag, useful for telemetry and documentary purposes.
Comment thread
beeme1mr marked this conversation as resolved.