Repository navigation
Restore the pointer-speed schema minimum a JSDoc typo dropped - #1353
Merged
lujjjh merged 1 commit intoAug 11, 2026
Merged
Conversation
The Pointer.speed JSDoc tag was spelled @minimal instead of @Minimum, so the JSON-schema generator (ts-json-schema-generator) silently dropped the lower bound: the published Configuration.json admitted negative speeds while the Swift runtime clamps to Scheme.Speed.range 0...1 and rejected them. Fixing the tag restores minimum: 0 alongside the existing maximum: 1, so the schema keeps tracking the runtime clamp. Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scheme.Pointer.speedclamps to0 ... 1in the Swift runtime (Scheme.Speed.range), but the JSON-schema tag documenting the lower bound was misspelled@minimalinstead of@minimum.ts-json-schema-generatorsilently dropped an unknown tag, so the publishedDocumentation/Configuration.jsonadmitted negative speeds while the runtime rejected them.Root Cause
Documentation/Configuration.d.tsline ~422:@minimal 0→ the generator emitsminimumonly for@minimum;@minimalis ignored, so the lower bound never reached the schema.Changes
Documentation/Configuration.d.ts:@minimal 0->@minimum 0.Documentation/Configuration.json: regenerated (the pre-commit hook does this from the.d.tssource of truth).LinearMouseUnitTests/Model/ConfigurationSchemaTests.swift: newConfigurationSchemaTestspinning bothPointer.speedbounds (minimum == 0,maximum == 1) as a regression guard, so the schema cannot silently drift from the runtime clamp again.Verification
make configure clean lint test XCODEBUILD_ARGS="CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= DEVELOPMENT_TEAM=":swiftformat --lint .— no new violations vsmainswiftlint .— 0 seriousConfigurationSchemaTests/testPointerSpeedDeclaresBothBoundspasses