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
46
47
48
49
50
51
52
53
use ;
use Value;
/// An escape hatch for when you already have a JSON Schema document (or need one
/// this crate's other [`Schema`](super::Schema) variants can't express) and just
/// want to use it as-is, rather than rebuilding it field by field.
///
/// # Example
///
/// ```
/// use llmprism::schema::RawSchema;
/// use serde_json::json;
///
/// let coordinates = RawSchema::new(
/// "coordinates",
/// json!({
/// "type": "object",
/// "properties": {
/// "lat": {"type": "number"},
/// "lon": {"type": "number"},
/// },
/// "required": ["lat", "lon"],
/// }),
/// );
/// ```