Repository navigation
feat: preserve physical pad identifiers in PCB pad schemas - #993
Open
rushabhcodes wants to merge 1 commit into
Open
rushabhcodes wants to merge 1 commit into
rushabhcodes wants to merge 1 commit into
Conversation
rushabhcodes
force-pushed
the
fix/physical-pad-identifiers
branch
2 times, most recently
from
November 10, 2026 14:47
4262bb2 to
08eb11b
Compare
rushabhcodes
changed the base branch from
test/physical-pad-identifiers
to
main
November 10, 2026 14:55
rushabhcodes
force-pushed
the
fix/physical-pad-identifiers
branch
from
November 10, 2026 14:56
08eb11b to
e2d7540
Compare
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
Add optional string
pad_numberto everypcb_smtpadandpcb_plated_holeZod variant and matching TypeScript interface. This field represents the authoritative physical pad identifier when supplied, independently of electrical port aliases or numeric source-pin ordinals.Preserve the string verbatim, including
A1,B2,MP1, leading zeros, punctuation, case, and an explicitly empty identifier. Repeated labels remain valid. Numeric values are rejected instead of coerced. Existing records without this field remain compatible.This is a standalone PR targeting
main. Only the two pad schema files change. The repro-specific tests have been removed, and repro PR #991 is closed. No README changes.Integration
Importers can retain the raw physical pad label in this field, and exporters can prefer it without guessing from arbitrary port aliases. Downstream consumers should use the PR package preview for validation, then a published circuit-json release before release.
Validation
bun test: 543 pass, 0 fail across 202 files.bunx tsc --noEmitbun run lint:zodbun run check-snake-casebun run buildgit diff --checkpass.Validated against main commit a612096.