Skip to main content

View Schema

The Schema module provides definitions and validation for view components, ensuring that all view schemas conform to the expected structure and types.

Overview

The Schema module is responsible for:
  • Defining the structure of view schemas
  • Validating schemas against predefined rules
  • Providing type safety for schema operations
  • Converting between different schema formats

Schema Structure

View schemas are defined using a consistent structure that supports various view types:

Field Definitions

Fields are defined with properties that control their appearance and behavior:

Schema Validation

The Schema module uses Zod for runtime validation of schemas:

Schema Conversion

The Schema module provides utilities for converting between different schema formats:

Integration with CRUD

The Schema module integrates with the CRUD package to ensure compatibility:

Internationalization

The Schema module supports internationalization of schema definitions:

Schema Extensions

The Schema module supports extending schemas with custom properties: