schema-dsl document map

This page is a document map. The left sidebar keeps the main learning path, while this page also lists smaller reference and appendix pages for readers who already know the area they need.

Start

DocumentWhen to read it
HomeLanding page and primary product positioning.
Quick StartFirst successful schema, validation result, and common usage path.
Design PhilosophyWhy schema-dsl favors concise DSL, JSON Schema output, and runtime validation.
TypeScript GuideType inference boundaries, editor hints, and TypeScript usage patterns.

Schema Authoring

DocumentWhen to read it
DSL SyntaxComplete DSL grammar for string and object schemas.
Complete Type ListSupported base types, formats, factory calls, and type-oriented behavior.
Chain Method ListComplete field builder method list and entry support.
Optional Marker ?Optional field syntax and required-field behavior.
Multi-type SupportDesign notes for fields that accept multiple types.
Union Typestypes: syntax and cross-type validation.
Union Type GuidePractical guide for one field accepting multiple types.
Number OperatorsNumeric comparison operators and range notation.
EnumEnumeration syntax and allowed-value validation.
String ExtensionsJavaScript String chain helpers and side-effect-controlled entries.

Validation and Runtime

DocumentWhen to read it
validate()Synchronous validation helper and result shape.
validateAsync()Async validation and ValidationError behavior.
Batch ValidationValidating arrays of data with aggregate results.
DSL Object SupportPassing DSL object definitions directly to validation helpers.
Validation GuideEnd-to-end validation scenarios, failures, and options.
ValidatorValidator class usage, lifecycle, and cache behavior.
Conditional APIConditionalBuilder and conditional validation chains.
Error HandlingError formatting, messages, and recovery patterns.
compile()Compiling schemas before repeated validation.
Runtime IsolationIsolated runtime state for app, plugin, tenant, or worker boundaries.

Export and Interop

DocumentWhen to read it
JSON Schema BasicsJSON Schema concepts used by schema-dsl output.
Export GuideHow JSON Schema maps to database and Markdown exporters.
Export LimitationsWhich validation semantics cannot be represented by database DDL.
MongoDB ExporterMongoDB $jsonSchema output and collection commands.
MySQL ExporterMySQL DDL and type mapping.
PostgreSQL ExporterPostgreSQL DDL, schemas, and indexes.
Markdown ExporterMarkdown documentation output from schemas.
TypeConverterJSON Schema to database type conversion utilities.

Reuse and Utilities

DocumentWhen to read it
SchemaUtilsSchema reuse, composition, filtering, and helper exports.
SchemaUtils ChainingChain-style reuse operations.
SchemaUtils Best PracticesPractical patterns and common pitfalls for reusable schemas.
SchemaUtils Advanced IssuesDeeper edge cases and maintenance notes.
SchemaHelperSchema analysis and helper utilities.
Validator CacheCompile cache capacity, TTL, and hit-rate statistics.
Labels and MessagesDifference between .label(), .description(), .messages(), and .error().

Internationalization

DocumentWhen to read it
i18n OverviewInternationalization model and supported locale concepts.
Multi-language SupportBuilt-in multilingual behavior.
i18n User GuideUser-facing i18n configuration and usage.
Frontend i18n GuideFrontend language switching patterns.
Add Custom LocaleAdding custom language packs.
Dynamic LocaleRuntime locale switching.
Runtime Locale SupportLocale behavior during runtime validation.

Extensions and Integration

DocumentWhen to read it
Extension OverviewChoose between custom business types, validation keywords, runtime isolation, and plugins.
Custom DSL TypesDefine reusable business types once for pure DSL, s('...'), and s.xxx() entries.
Custom Validation KeywordsAdd custom AJV keywords.
Framework IntegrationOrganize reusable extension modules for applications and frameworks.
Plugin Manager (Advanced)Plugin lifecycle, hooks, and integration orchestration.

Production and Troubleshooting

DocumentWhen to read it
Best PracticesRecommended usage patterns for production projects.
Project Structure Best PracticesOrganizing schema-dsl in a real project.
Performance GuidePerformance tuning and cache considerations.
Security NotesSecurity notes for schema usage, custom validators, and export.
TroubleshootingCommon failures and reproducible fixes.
FAQShort answers to common questions.

Reference and Index

DocumentWhen to read it
API ReferenceFull public API reference.
API OverviewCompact API entry point.
Document MapThis page, organized by topic.
Feature IndexCapability-oriented lookup across documents.

Examples

ResourcePurpose
examples/docsCompanion examples for the documentation pages.
doc-index.tsSmall entry script that connects quick start, compilation, and document export.

For current validation commands and test counts, use the repository scripts and project Profile rather than static numbers on this page.