Commit b4b9b64
Make int32 config parsing strict and loud
Previously `_extract_value_int32` silently returned the field default when a
config value was present but not an `int32_value` (e.g. a bare `2` instead of
`2i32`). That silent fallback masked malformed input.
Now the helper errors loudly (`ParseError`) when a config value is present with
the wrong type, while still keeping the `i32` suffix requirement and returning
the default only when the field is genuinely absent.
Edited `meta/src/meta/grammar.y` and regenerated the Python, Julia, and Go
parsers. Added regression tests in the Julia and Python SDKs covering: a
properly-typed `2i32` parses, a bare `2` raises `ParseError`, and omitting the
field yields the default (1).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 671608d commit b4b9b64
6 files changed
Lines changed: 343 additions & 273 deletions
File tree
- meta/src/meta
- sdks
- go/src
- julia/LogicalQueryProtocol.jl
- src
- test
- python
- src/lqp/gen
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | | - | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
1460 | 1462 | | |
| 1463 | + | |
1461 | 1464 | | |
1462 | 1465 | | |
1463 | 1466 | | |
| |||
0 commit comments