Feat (small): Add CompleteRequest.values maximum length to jsonschema
Motivation and Context
The schema declares in a JSDoc comment, regarding CompleteResult.values:
- An array of completion values. Must not exceed 100 items.
This PR simply adds that maximum length constraint as a TJS declaration, making the resulting spec slightly more explicit by adding a maxItems property to the array.
How Has This Been Tested?
Not applicable, as far as I know. Validated the change by generating the jsonschema and inspecting the minor diff for correctness.
Breaking Changes
Not as far as I know, and not as long as they were already complying with the documented constraints.
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [x] Documentation update
Checklist
- [x] I have read the MCP Documentation
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x] I have added appropriate error handling (N/A)
- [x] I have added or updated documentation as needed
Additional context
I decided to update the current spec and the draft, and leave the last version untouched.
New and existing tests pass locally
I'm not aware of any tests besides compiling, generating, serving, and linting.
Hi @jaytoday!
This is already possible.