Skip to content

fix(elixir): validate string lengths - #3428

Open
schani wants to merge 1 commit into
masterfrom
fix/elixir-string-length
Open

fix(elixir): validate string lengths#3428
schani wants to merge 1 commit into
masterfrom
fix/elixir-string-length

Conversation

@schani

@schani schani commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

  • enforce JSON Schema minLength and maxLength in generated Elixir decoders
  • use String.length/1 so validation counts Unicode code points rather than bytes
  • enable the existing minmaxlength schema fixture for Elixir

Validation

  • npm run build
  • npm run lint
  • FIXTURE=schema-elixir npm run test:fixtures -- test/inputs/schema/minmaxlength.schema test/inputs/schema/optional-constraints.schema

Production change: 12 additions, 3 deletions.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Generated-output differences

66 files differ — 66 modified, 0 new, 0 deleted
2944 changed lines — +2573 / −371

Open the generated-output report →

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.

1 participant