- Overview
- Quick Start
- Introduction
- Guides
- Client Libraries
- API Reference
- Examples
- DDD Resources
- Validation user guide
- Validation developer guide
Built-in options
This section is a “how to choose” catalog of the built-in validation options
from spine/options.proto.
It focuses on the options that affect Spine Validation and skips deprecated and non-validation options.
When to use this section
Use this section when you want to:
- pick the right option for a specific validation need, like presence, bounds, uniqueness, etc.;
- understand where an option can be declared (field,
oneof, message); - see minimal
.protosnippets you can copy into a model.
Choose a page
- Most field constraints — presence, bounds, patterns, nested validation, dependencies:
Field-level options - Enforce “one of these fields must be set” in a
oneof:
Options foroneoffields - Cross-field rules on a message (“at least one group is set”):
Message-level options - Collections (
repeated/map) — non-empty, uniqueness, per-element validation:
Options forrepeatedandmapfields
Source of truth
For the canonical option definitions, see spine/options.proto in
the Spine base libraries on GitHub.