Use a single parameter to represent the tool request object #835
Unanswered
anthony-c-martin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
That should "just work". Does it not? Parameters can be complex, so there's nothing preventing a parameter to your method itself having multiple properties. Is there something more subtle you're asking for? e.g. is it that you want to write it with such a XxRequest class but have the schema be more like for individual parameters, and if so, why? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
I currently have code that looks like the following:
What I'd really like to be able to write is something like the following, where "request" represents the full payload body schema, rather than a parameter named "request", which would be the default behavior:
The benefit of this approach is that the code declaring the schema the "top-level" request can be authored similarly to the code for types in nested properties.
Is this something that's possible today?
Beta Was this translation helpful? Give feedback.
All reactions