{"id":20782475,"url":"https://github.com/featureprobe/server-sdk-specification","last_synced_at":"2026-03-27T02:16:06.612Z","repository":{"id":37100138,"uuid":"496194282","full_name":"FeatureProbe/server-sdk-specification","owner":"FeatureProbe","description":"Unified Test Cases for All Server Side SDKs","archived":false,"fork":false,"pushed_at":"2023-09-19T03:07:25.000Z","size":53,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-26T18:48:09.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FeatureProbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-25T11:04:08.000Z","updated_at":"2022-12-30T02:51:53.000Z","dependencies_parsed_at":"2024-11-17T14:11:29.883Z","dependency_job_id":"1563ea3a-d0be-4f34-9b2e-2521e0ce54d7","html_url":"https://github.com/FeatureProbe/server-sdk-specification","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FeatureProbe/server-sdk-specification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeatureProbe%2Fserver-sdk-specification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeatureProbe%2Fserver-sdk-specification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeatureProbe%2Fserver-sdk-specification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeatureProbe%2Fserver-sdk-specification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FeatureProbe","download_url":"https://codeload.github.com/FeatureProbe/server-sdk-specification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FeatureProbe%2Fserver-sdk-specification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31009857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T01:56:05.093Z","status":"online","status_checked_at":"2026-03-27T02:00:08.055Z","response_time":164,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T14:11:27.055Z","updated_at":"2026-03-27T02:16:06.084Z","avatar_url":"https://github.com/FeatureProbe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# FeatureProbe server side SDK Specification\n\nWe want FeatureProbe to be available for each popular programming languages, and still we want each of these SDKs to\nhave a consistent behavior.\n\nThis project defined expected result for a given FeatureProbe environment. And each server side SDK implementation\nshould adhere to these specs.\n\n## File structure\n\nSpecs are located in /spec folder, in JSON format. Each language SDK implementation have to construct a test framework\nto load and run these specs with their own language and test framework conventions.\n\n## Spec description\n\nA spec file has the following shape:\n\n```json\n{\n  \"tests\": [\n    {\n      \"scenario\": \"Name of this scenario\",\n      \"fixture\": {\n        \"segments\": {},\n        \"toggles\": {}\n      },\n      \"cases\": [\n        {\n          \"name\": \"name of this test case.\",\n          \"user\": {\n            \"key\": \"user id\",\n            \"customValues\": [\n              {\n                \"key\": \"email\",\n                \"value\": \"name@mycompany.com\"\n              }\n            ]\n          },\n          \"function\": {\n            \"name\": \"bool_value\",\n            \"toggle\": \"toggle_to_test\",\n            \"default\": true\n          },\n          \"expectResult\": {\n            \"value\": true,\n            \"noRuleIndex\": true,\n            \"reason\": \"default\"\n          }\n        }\n      ]\n    }\n  ]\n}\n```\n\nFields description:\n\n* __tests__ : list of all test scenarios in this spec file.\n  * __scenario__ : each spec file contains several scenarios, this is the name of the scenario.\n  * __fixture__ : each scenario share this fixture, fixture represent a FeatureProbe environment, which use the same\n    format as SDK pulled from FeatureProbe server.\n    * __segments__ : user segments in this environment.\n    * __toggles__ : feature toggles in this environment.\n  * __cases__ : test cases in this scenario.\n    * __name__ : name of this case.\n    * __user__ : use info in this struct to construct a FPUser.\n      * __key__ : user id of FPUser.\n      * __customValues__ : other key-value pairs to use with FPUser.with.\n    * __function__ : FeatureProbe function to test.\n      * __name__ : function name.\n      * __toggle__ : toggle name, the first parameter to call FeatureProbe function.\n      * __default__ : default value, the last parameter to call FeatureProbe function.\n    * __expectResult__ : expected result of function call.\n      * __value__ : returned variation value.\n      * __reason__ : reason in FPDetail, if called _detail functions.\n      * __ruleIndex__ : ruleIndex in FPDetail.\n      * __noRuleIndex__ : should not return ruleIndex in FPDetail.\n      * __version__ : version in FPDetail.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeatureprobe%2Fserver-sdk-specification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeatureprobe%2Fserver-sdk-specification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeatureprobe%2Fserver-sdk-specification/lists"}