feat: add 'uri' for context items for http context provider
This commit is contained in:
parent
922441918a
commit
1b28153c72
2 changed files with 31 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ class HttpContextProvider extends BaseContextProvider {
|
|||
description: item.description ?? "HTTP Context Item",
|
||||
content: item.content ?? "",
|
||||
name: item.name ?? this.options.title ?? "HTTP",
|
||||
uri: {
|
||||
type: item.uri.type,
|
||||
value: item.uri.value,
|
||||
},
|
||||
});
|
||||
|
||||
return Array.isArray(json)
|
||||
|
|
|
|||
|
|
@ -987,6 +987,33 @@ The response 200 OK should be a JSON object with the following structure:
|
|||
"description": "",
|
||||
"content": ""
|
||||
}
|
||||
|
||||
// For response context items with hyperlinks
|
||||
|
||||
[
|
||||
{
|
||||
"name": "",
|
||||
"description": "",
|
||||
"content": "",
|
||||
"uri": {
|
||||
"type": "file" or "url",
|
||||
"value": "file:///path/to/file" or "https://example.com",
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
// OR
|
||||
|
||||
{
|
||||
"name": "",
|
||||
"description": "",
|
||||
"content": "",
|
||||
"uri": {
|
||||
"type": "file" or "url",
|
||||
"value": "file:///path/to/file" or "https://example.com",
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
### `@Commits`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue