feat: add title field for data types (#410)
* feat(model): add title field to various structs * fix(test): fix test json schema * fix(model): allow boxed type in `ts_union` macro
This commit is contained in:
parent
fdd6bc0565
commit
1b70f5b032
1 changed files with 219 additions and 73 deletions
|
|
@ -66,7 +66,7 @@ pub enum RawContent {
|
|||
Text(RawTextContent),
|
||||
Image(RawImageContent),
|
||||
Resource(RawEmbeddedResource),
|
||||
Audio(AudioContent),
|
||||
Audio(RawAudioContent),
|
||||
ResourceLink(super::resource::RawResource),
|
||||
}
|
||||
|
||||
|
|
@ -253,6 +253,7 @@ mod tests {
|
|||
let resource_link = RawContent::ResourceLink(RawResource {
|
||||
uri: "file:///test.txt".to_string(),
|
||||
name: "test.txt".to_string(),
|
||||
title: None,
|
||||
description: Some("A test file".to_string()),
|
||||
mime_type: Some("text/plain".to_string()),
|
||||
size: Some(100),
|
||||
|
|
|
|||
Loading…
Reference in a new issue