Skip to content

Validate synthetic value alignment during construction - #30

Merged
GG-O-BP merged 1 commit into
mainfrom
fix/synthetic-length-validation
Sep 3, 2026
Merged

GG-O-BP merged 1 commit into
mainfrom
fix/synthetic-length-validation

Conversation

@GG-O-BP

@GG-O-BP GG-O-BP commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Synthetic list_attribute/list_text_template/list_expression/association builders silently returned undefined values when parallel value lists were shorter than the item list, crashing chart/grid consumers later.
  • Constructors now validate one-value-per-item alignment and fail immediately with a descriptive error (function name, expected/actual counts) while preserving every public signature and the aligned-input behavior.
  • New synthetic contract tests cover aligned construction across all four builders and mismatch rejection.

Fixes #13

Verification

  • gleam test --runtime bun — 20 passed.
  • ./scripts/verify.sh inner mendraw — passed.
  • ./scripts/check-all.sh — passed.
  • pre-push verify.sh final — passed on retry (family checks, widget build, Lustre E2E, Mendix full E2E); first attempt hit a transient Hex API rate limit.

@GG-O-BP
GG-O-BP merged commit 6f60015 into main Sep 3, 2026
@GG-O-BP
GG-O-BP deleted the fix/synthetic-length-validation branch September 3, 2026 01:56
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.

[runtime] synthetic 리스트/연관 배열 길이 미검증으로 undefined 반환

1 participant