omni-schema-core 0.1.1

Core types and traits for omni-schema - Universal Schema Generator for Rust
Documentation

omni-schema-core

Core types and traits for the omni-schema library.

This crate provides the foundational types, traits, and schema generators that power the omni-schema derive macros. It can also be used directly for programmatic schema generation.

Core Components

  • [Schema] - The main trait implemented by types that can generate schemas
  • [SchemaType] - Intermediate representation of type information
  • [SchemaDefinition] - Complete type definition with metadata
  • [SchemaRegistry] - Collection of types for batch export

Format Generators

Each output format has its own generator module (enabled via feature flags):

  • json_schema - JSON Schema (draft 2020-12)
  • openapi - OpenAPI 3.1 components
  • graphql - GraphQL SDL type definitions
  • protobuf - Protocol Buffers (.proto files)
  • typescript - TypeScript type definitions
  • avro - Apache Avro schema