schema-dsl feature index

Use this page when you know the capability you need but not the document name. For a complete page-by-page map, see Document Map.

Define Schemas

CapabilityPrimary documents
Write compact DSL stringsDSL Syntax, Quick Start
Define object schemasDSL Syntax, DSL Object Support
Mark fields required or optionalOptional Marker ?, Type Reference
Use enum valuesEnum, DSL Syntax
Use multiple accepted typesUnion Types, Union Type Guide, Multi-type Support
Use numeric ranges and comparison operatorsNumber Operators, DSL Syntax
Use builder chain methodsChain Method List, TypeScript Guide
Use direct String chain helpersString Extensions, TypeScript Guide

Validate Data

CapabilityPrimary documents
Validate synchronouslyvalidate(), Validation Guide
Validate asynchronouslyvalidateAsync(), Error Handling
Validate multiple recordsBatch Validation, Validation Guide
Reuse a Validator instanceValidator, Performance Guide
Precompile schemascompile(), Validator
Add conditional rulesConditional API, Validation Guide
Format and customize errorsError Handling, i18n User Guide

Runtime, TypeScript, and Side Effects

CapabilityPrimary documents
Understand TypeScript inference boundariesTypeScript Guide, API Reference
Choose schema-dsl/pure vs schema-dsl/runtimeRuntime Isolation, Quick Start
Use side-effect-controlled entriesString Extensions, Runtime Isolation
Isolate runtime state by app, plugin, tenant, or workerRuntime Isolation, Runtime Locale Support
Work with locale and messages at runtimeRuntime Locale Support, Dynamic Locale

Export and Interoperate

CapabilityPrimary documents
Understand JSON Schema outputJSON Schema Basics, API Reference
Export database schemasExport Guide, Export Limitations
Export to MongoDBMongoDB Exporter, Export Guide
Export to MySQLMySQL Exporter, Export Guide
Export to PostgreSQLPostgreSQL Exporter, Export Guide
Export schema documentationMarkdown Exporter, Export Guide
Convert schema typesTypeConverter, JSON Schema Basics

Reuse and Extend

CapabilityPrimary documents
Reuse schema fragmentsSchemaUtils, SchemaUtils Chaining
Apply schema utility patternsSchemaUtils Best Practices, SchemaUtils Advanced Issues
Analyze or transform schema objectsSchemaHelper, Validator Cache
Choose an extension pathExtension Overview, Framework Integration
Add custom DSL typesCustom DSL Types, Extension Overview
Use direct String-chain authoringString Extensions, TypeScript Guide
Add custom keywordsCustom Validation Keywords
Package plugin lifecycle and hooksPlugin Manager (Advanced)

Internationalize

CapabilityPrimary documents
Use built-in locale supporti18n Overview, Multi-language Support
Configure i18n in an applicationi18n User Guide, Runtime Locale Support
Switch language dynamicallyDynamic Locale, Frontend i18n Guide
Add a custom localeAdd Custom Locale, i18n User Guide

Operate in Production

CapabilityPrimary documents
Choose production patternsBest Practices, Project Structure Best Practices
Improve performancePerformance Guide, Validator Cache
Review security-sensitive usageSecurity Notes, Export Limitations
Diagnose common failuresTroubleshooting, FAQ

API Reference

NeedPrimary documents
Full public API detailsAPI Reference
Compact API entry pointAPI Overview
Documentation by pageDocument Map

Examples

ResourcePurpose
examples/docsRunnable companion examples for documentation pages.
feature-index.tsRepresentative example connecting DSL, String extensions, and exporters.
chain-methods.tsRunnable coverage for field builder chain methods.
extensions-overview.tsRunnable overview of extension paths.
custom-extensions.tsRunnable custom DSL type example using pure DSL, s('...'), s.xxx() and runtime-scoped entries.
object-dsl-builder.tsObject builder chaining, required-field control, and object schema conversion.
real-world.tsProduction-style composition for users, products, orders, queries, defaults, and async validation.