fix: NsTeSTPacket.LeadingBlank defaults to empty string (20.0.1)#459
Merged
erwan-joly merged 1 commit intomasterfrom Apr 24, 2026
Merged
fix: NsTeSTPacket.LeadingBlank defaults to empty string (20.0.1)#459erwan-joly merged 1 commit intomasterfrom
erwan-joly merged 1 commit intomasterfrom
Conversation
The field models the literal double space vanosilla emits after the `NsTeST` header; without a non-null default the serializer emits "-" for an unset property, producing "NsTeST - 0 …" on the wire. Make the property non-nullable with an empty-string default so consumers don't have to remember to set it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughThe pull request updates the NosCore.Packets package version from 20.0.0 to 20.0.1 and modifies the NsTestPacket class to make the LeadingBlank property non-nullable with a default empty string value. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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
Bug observed on NosCore's own login server: the wire came out as `NsTeST - 0 admin …` instead of the vanosilla `NsTeST 0 admin …` (literal double space). The serializer emits `-` for an unset/null string property, and `LeadingBlank` was `string?` with no default.
Make `LeadingBlank` non-nullable with an empty-string default so any consumer constructing an `NsTestPacket` automatically round-trips correctly without remembering to set it.
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Bug Fixes