Skip to content

validate switch cases against mapper values - #22

Open
VasilisDragon wants to merge 1 commit into
ProtoDef-io:masterfrom
VasilisDragon:fix-mapper-switch-validation
Open

VasilisDragon wants to merge 1 commit into
ProtoDef-io:masterfrom
VasilisDragon:fix-mapper-switch-validation

Conversation

@VasilisDragon

Copy link
Copy Markdown

Reject literal switch cases that aren't outputs of a known mapper. Resolves container paths and aliases, and skips relationships with unknown semantics.

Adds generic tests. npm test passes on Node 14 and 24; the unchanged Minecraft protocol suite and all 112 physical PC/Bedrock protocol definitions pass.

Fixes #21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add protocol mapper sanity check to protodef-validator

1 participant