fix(jsonschema): don't cap key-string (SSH public key) at secret-string's 64 chars #2
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
go
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nemith/nvueschema!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/key-string-maxlength"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
key-stringformat (SSH public keys:system/aaa/user/*/ssh/authorized-keyand ssh-server trusted CA keys) is aliased to thesecret-stringformat, which the JSON Schema output caps atmaxLength: 64.SSH public keys are not secrets and exceed 64 chars — an ed25519 public key is 68 base64 chars. The generated schema therefore rejects every ed25519 key with
maxLength: got 68, want 64.Fix
Give
key-stringits own unbounded string format/$def instead of aliasingsecret-string.secret-string's cap is unchanged.Test
TestKeyStringFormat_NoMaxLengthasserts akey-stringfield maps to#/$defs/key-stringwith nomaxLength, and thatsecret-stringkeeps its cap.🤖 Generated with Claude Code
lgtm