#eure #specification #validation #schema

eure-schema

Schema specification and validation for Eure

7 releases

Uses new Rust 2024

new 0.1.7 Feb 9, 2026
0.1.6 Feb 2, 2026
0.1.5 Jan 28, 2026
0.0.0 May 24, 2025

#10 in #eure

23 downloads per month
Used in 9 crates (4 directly)

MIT/Apache

2.5MB
63K SLoC

Eure Schema types and structures

This library provides schema type definitions for Eure documents, following the specification in assets/eure-schema.schema.eure.

Type Variants

All types are variants of SchemaNodeContent:

Primitives:

  • Text - Text type with optional language and length/pattern constraints
  • Integer - Integer type with optional range and multiple-of constraints
  • Float - Float type with optional range and multiple-of constraints
  • Boolean - Boolean type (no constraints)
  • Null - Null type
  • Any - Any type (accepts any value)

Literal:

  • Literal - Exact value match (e.g., status = "active")

Compounds:

  • Record - Fixed named fields
  • Array - Ordered list with item type
  • Map - Dynamic key-value pairs
  • Tuple - Fixed-length ordered elements
  • Union - Tagged union with named variants

Reference:

  • Reference - Type reference (local or cross-schema)

eure-schema

Schema definition and validation for Eure.

This crate provides a schema system for Eure files, allowing for validation, type checking, and enhanced editor support.

This crate is still under development and published for name reservation purpose.

Part of the Eure project - a minimalist, schema-friendly format with an algebraic data model that's compatible with JSON.

Dependencies

~8–11MB
~186K SLoC