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 componentsgraphql- GraphQL SDL type definitionsprotobuf- Protocol Buffers (.proto files)typescript- TypeScript type definitionsavro- Apache Avro schema