schema

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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