-
Notifications
You must be signed in to change notification settings - Fork 23
fix: JsonSchema required #288
Conversation
|
Hi @lvluoyue, thanks for taking care of that! How did you run into it? I was wondering before if that's needed or only with stricr mode |
Parameters should be optional when specifying a default value public function searchSong(
string $keyword,
#[With(minimum: 1, maximum: 60)]
int $limit = 10,
#[With(minimum: 1)]
int $page = 1
): string {
return R::mcp($this->tencentService->searchSong($keyword, $page, $limit));
} |
|
Sounds good, yes! Do you mind sharing what's that |
The full name of R is response, and it is used to encapsulate various response formats into a unified format |
|
you can run the failing tests locally with: |
|
Maybe I get it wrong but in your example the parameter is required but with a default value, so null is not supported here, or am I missing sth? |
I was negligent, sorry. I've modified to the correct code and modified the unit tests |
|
Are you using OpenAI? |
Thanks, I'm using OpenAI, and I'm writing an mcp server with |
|
if you revert commit b6007f4 the pipeline should be fine - i personally don't see real value in those |
174af0b to
b8a7687
Compare
chr-hertel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lvluoyue! Looks good to me now 👍

No description provided.