Back to Product Updates
Key Feature
Feature Flags

Validate string and number flags with schemas and scoped hooks

July 23, 2026

GrowthBook extends schema validation to string and number flags and lets you attach Custom Hooks to a single feature. You can limit a flag to the values your code expects and give one flag its own checks, alongside broader organization and project rules.

Set boundaries for flag values

GrowthBook could already validate the shape of JSON flag values. Schema validation now covers string and number flags too, and is available with GrowthBook Enterprise. With validation enabled, you can:

  • Restrict a string flag to approved values, such as classic, compact, or express.
  • Set minimum and maximum values for a number flag, such as 10 to 100 results per page.

This is useful when several people edit a flag and only a few values are safe to serve. When someone tries to save a value that doesn't match the schema, GrowthBook shows an inline error with the reason it failed. Boolean flags can't have a schema.

Apply checks to one flag

Custom Hooks previously applied to every feature in an organization or project. On self-hosted GrowthBook Enterprise, you can now attach a hook to a single flag for rules that a schema can't express. For example, require a description before that flag is enabled in production.

The flag's Validation tab also lists the organization and project hooks that apply to it. Keep hooks fast and free of side effects, because a hook can run more than once during a save.

Getting started

  • Open a string or number flag, go to its Validation tab, and click Enable under Schema Validation. Define the allowed values or numeric bounds, then try a value against them.
  • To add a hook for one flag, you need edit access to that flag. Create the hook from the flag's Validation tab, and use the built-in test interface to run it before saving.
  • Follow the Custom Hooks guide for hook types, scopes, and examples.

Similar updates

See All Updates
Key Feature
SDKs

Evaluate multiple Java feature flags in one call

October 15, 2026
Key Feature
Product Analytics

Inspect warehouse query statistics and audit records

October 12, 2026
Key Feature
Product Analytics

See how analysis adjustments affect a metric's results

October 12, 2026
Key Feature
Feature Flags

Reuse Saved Groups and find broken targeting references

October 9, 2026
Key Feature
Product Analytics

Connect LLM traces to experiment metrics

October 5, 2026
Key Feature
AI Platform

Set up GrowthBook SDKs with your coding agent

September 29, 2026
Key Feature
Product Analytics

Explore user journeys in Product Analytics

September 22, 2026
Key Feature
Product Analytics

Explore SQL results and turn them into charts

September 22, 2026
Key Feature
Integrations

New Slack integration

September 22, 2026
Key Feature
AI Platform

Connect agents to hosted MCP with OAuth

September 22, 2026
Key Feature
Experimentation

Measure multi-step funnels inside experiments

September 22, 2026
Key Feature
Feature Flags

Personalize variations with contextual bandits (beta)

September 22, 2026
Key Feature
Product Analytics

Keep Managed Warehouse event data in the EU

September 11, 2026
Key Feature
Experimentation

Capture reusable Learnings across experiments

August 27, 2026
Key Feature
Integrations

Analyze Adobe Experience Platform data in GrowthBook

August 18, 2026
Key Feature
SDKs

Use typed feature values in Swift and Kotlin

August 15, 2026
Key Feature
Feature Flags

Share feature flags across projects

July 24, 2026
Key Feature
Integrations

Connect Databricks with service principal OAuth

July 22, 2026
Key Feature
Product Analytics

Product Analytics is generally available

July 20, 2026
Key Feature
AI Platform

Build website variations with the AI Visual Editor

July 20, 2026
Key Feature
AI Platform

Use the in-app AI Assistant across GrowthBook

July 20, 2026
Key Feature
AI Platform

Use agent skills and the rebuilt GrowthBook CLI

July 20, 2026
Key Feature
Experimentation

Create experiment drafts before finishing analysis setup

July 20, 2026
Key Feature
Experimentation

Apply custom validation before experiment changes

July 16, 2026
Key Feature
Feature Flags

Scheduled analysis refreshes for monitored ramps

July 14, 2026
Key Feature
SDKs

Remote evaluation in Python, PHP, and Java

June 30, 2026
Key Feature
Feature Flags

Review and schedule changes to Saved Groups

June 29, 2026
Key Feature
Feature Flags

Override selected fields in JSON flag values

June 19, 2026
Key Feature
Product Analytics

Use incremental refresh with Snowflake

May 28, 2026
Key Feature
Feature Flags

Run bandits without sticky bucketing

May 27, 2026
Key Feature
Product Analytics

Run Product Analytics explorations through MCP and REST

May 27, 2026
Key Feature
AI Platform

Ask the AI Data Analyst about your product metrics

May 27, 2026
Key Feature
Feature Flags

Plan gradual releases with ramp schedules

May 27, 2026
Key Feature
Experimentation

Manage the experiment lifecycle through the REST API

May 27, 2026