Skip to content

Reject missing expression separators - #64

Open
OskarEichler wants to merge 1 commit into
jmespath:mainfrom
OskarEichler:codex/expression-separators
Open

Reject missing expression separators#64
OskarEichler wants to merge 1 commit into
jmespath:mainfrom
OskarEichler:codex/expression-separators

Conversation

@OskarEichler

Copy link
Copy Markdown

Summary

Require commas between function arguments and multi-select entries, reject trailing function commas, and correct the existing list error typo.

Reproduction

Expressions with adjacent arguments/entries currently parse by silently consuming them. Focused malformed function/list/hash expressions now raise JMESPath::Errors::SyntaxError.

Verification

  • isolated branch: 1,790 examples, zero failures
  • focused malformed-separator model
  • cumulative candidate: 892 current compliance checks, zero failures
  • all runtime syntax and Rails 8.1.3.1 integration pass

Compatibility

Only malformed expressions change; valid comma-delimited syntax is unchanged. Prepared with AI-assisted source review; no repository tests were changed.

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