Skip to content

Commit

Permalink
feat: Introduce the SDK Evaluation Context schema (#4414)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Oct 3, 2024
1 parent 0485601 commit d6c6004
Showing 1 changed file with 126 additions and 0 deletions.
126 changes: 126 additions & 0 deletions sdk/evaluation-context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
{
"$defs": {
"EnvironmentEvaluationContext": {
"properties": {
"api_key": {
"title": "Api Key",
"type": "string"
}
},
"required": [
"api_key"
],
"title": "EnvironmentEvaluationContext",
"type": "object"
},
"FeatureEvaluationContext": {
"properties": {
"name": {
"title": "Name",
"type": "string"
}
},
"required": [
"name"
],
"title": "FeatureEvaluationContext",
"type": "object"
},
"IdentityEvaluationContext": {
"properties": {
"identifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Identifier"
},
"traits": {
"additionalProperties": {
"anyOf": [
{
"$ref": "#/$defs/TraitEvaluationContext"
},
{
"type": "null"
}
]
},
"title": "Traits",
"type": "object"
},
"transient": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Transient"
}
},
"required": [],
"title": "IdentityEvaluationContext",
"type": "object"
},
"TraitEvaluationContext": {
"properties": {
"value": {},
"transient": {
"type": "boolean",
"default": false,
"title": "Transient"
}
},
"required": [
"value"
],
"title": "TraitEvaluationContext",
"type": "object"
}
},
"properties": {
"environment": {
"anyOf": [
{
"$ref": "#/$defs/EnvironmentEvaluationContext"
},
{
"type": "null"
}
],
"default": null
},
"identity": {
"anyOf": [
{
"$ref": "#/$defs/IdentityEvaluationContext"
},
{
"type": "null"
}
],
"default": null
},
"feature": {
"anyOf": [
{
"$ref": "#/$defs/FeatureEvaluationContext"
},
{
"type": "null"
}
],
"default": null
}
},
"title": "FlagsmithEvaluationContext",
"type": "object"
}

0 comments on commit d6c6004

Please sign in to comment.