1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Ferrin JSON Schema support.
//!
//! - [`Schema`]: a JSON Schema plus a typed validation function, created from
//! a Rust type (`schemars` derive + `serde` deserialization), from a raw JSON
//! Schema (validated with `jsonschema` when the `json-schema-validation`
//! feature is enabled) or from a custom validator.
//! - [`SchemaDialect`]: draft-07 (default) or 2020-12 generation settings.
//! - [`SchemaTransform`]: provider-oriented schema rewrites
//! (`additionalProperties: false`, OpenAI strict mode).
//! - [`partial_json`]: repair and parse truncated JSON produced by streaming
//! models.
//! - [`json`]: JSON parsing with size and depth limits.
//!
//! Design: `docs/01-architecture/08-structured-output.md`, ADR 0004.
//!
//! # Attribution
//!
//! Portions of this crate are derived from the Vercel AI SDK (Apache-2.0,
//! Copyright 2023 Vercel, Inc.), translated from TypeScript to Rust and
//! modified. See the `NOTICE` file in the crate root.
pub use SchemaDialect;
pub use SchemaError;
pub use JsonParseError;
pub use TypeValidationContext;
pub use TypeValidationError;
pub use ParseLimits;
pub use PartialParse;
pub use PartialParseState;
pub use Schema;
pub use schemars;
pub use JsonSchema;
pub use SchemaTransform;
pub use ValidationIssue;
pub use ValidationIssues;