Skip to content

Commit 5267d6e

Browse files
committed
Support char
1 parent 8dc9ccd commit 5267d6e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"Cargo.toml":"Patch"},"note":"Support char","date":"2026-02-18T13:50:20.581242600Z"}

crates/vespera_macro/src/parser/schema/type_schema.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ fn parse_type_impl(
281281
..Schema::number()
282282
})),
283283
"bool" => SchemaRef::Inline(Box::new(Schema::boolean())),
284+
"char" => SchemaRef::Inline(Box::new(Schema {
285+
format: Some("char".to_string()),
286+
..Schema::string()
287+
})),
284288
"String" | "str" => SchemaRef::Inline(Box::new(Schema::string())),
285289
// Date-time types from chrono and time crates
286290
"DateTime"

0 commit comments

Comments
 (0)