schema

package
v0.3.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

OpenFeature CLI Schema Definitions

This directory contains schema definitions for the OpenFeature CLI.

Files

flag-manifest.json

JSON Schema for the flag manifest file format. This schema defines the structure for feature flag configurations stored locally.

Sync API Implementation

Services that want to sync flag configurations with the OpenFeature CLI should implement the API defined in api/v0/sync.yaml.

Key requirements:

  • Accept POST or PUT requests with JSON payload
  • Support Bearer token authentication (optional)
  • Validate flag data according to the manifest schema
  • Return appropriate HTTP status codes
Example Request
{
  "key": "feature-x-enabled",
  "type": "boolean",
  "description": "Enable feature X",
  "defaultValue": true
}
Example Success Response
{
  "flag": {
    "key": "feature-x-enabled",
    "name": "feature-x-enabled",
    "type": "boolean",
    "description": "Enable feature X",
    "defaultValue": true
  },
  "updatedAt": "2025-11-03T20:41:52.000Z"
}

Usage

To view the OpenAPI specification in a user-friendly format, you can use tools like:

Documentation

Overview

Package schema embeds the flag manifest into a code module.

Index

Constants

This section is empty.

Variables

View Source
var SchemaFile string

Schema contains the embedded flag manifest schema.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL