🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
advanced

JSON Schema for Void Values

#json #schema-validation #api-design #specification

Design a JSON schema enforcing empty string rules over null.

Draft a JSON Schema definition for a configuration object where a specific field 'message' must explicitly accept an empty string "" as a valid value to indicate a cleared state, but must reject null or undefined values. Include validation rules for minimum and maximum length when the string is not empty.