Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

We’re enforcing field validation rules on the Management API

Дата публикации: 06-05-2026 12:26:45

Update: We’re enforcing field validation rules on the Management API is now available. Find out more at: https://www.storyblok.com/cl/we-re-enforcing-field-validation-rules-on-the-management-api.

Основное содержимое страницы с новостью.

Back to ChangelogRSS Feed (opens in a new window)

Illustration of two people assembling a large gear in front of a laptop, symbolizing teamwork and innovation.

For a long time, the character limits and item-count limits you configure on component fields (like max_length on a text field, or maximum items on a bloks field) were only checked in the Visual Editor. The API itself would accept content that exceeded those limits.

We’re changing that. Starting today, content saved through the Management API will be validated against the rules in your component schemas.

What’s changing

Text-type fields text, textarea, markdown, richtext) with a configured max_length will reject content exceeding the limit.

bloks fields with a configured maximum will reject content with more nested items than allowed.

Failed saves return 422 Unprocessable Entity with a message including both the configured limit and the current value.

What’s not changing

Regex pattern validation continues to run only in the Visual Editor. Enforcing JavaScript regex patterns on the Ruby backend isn’t straightforward, and we want to get that right before rolling it out.

Content already stored in your space is not re-validated. Validation only runs on new saves and updates.

Rollout timeline

1. Today: Enforcement is enabled for all newly created spaces.

2. 8 June: Enforcement will be enabled for all existing spaces.

The window gives you time to review integrations that write to the Management API and make sure the content they generate complies with the limits you’ve configured. If you find limits that are too strict for your data, you can adjust them in the component schema at any time.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1API Performance Improvements011.7326-05-2026
2Security Fix: Webhook API Now Aligned with UI Access Controls03.8508-04-2026
3Workflows for field-level translations019.3420-07-2026
4Type-Safe Schemas with @storyblok/schema014.8427-07-2026
5Scoped Personal Access Tokens010.3527-05-2026
6Storyblok Native A/B Testing 010.3501-06-2026
7Improved the restricted content experience in the Base Enhances Select05.9913-05-2026
8Real path in links api09.3126-09-2019
9Keyboard shortcuts for Visual Editor09.3108-07-2026
10RichText v5013.6715-07-2026

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 6.91. Источник: www.storyblok.com.