Skip to content

Enforce entry specs in open map destructurings - #1021

Merged
ikitommi merged 1 commit into
metosin:masterfrom
frenchy64:destructure-open-map-schema
Mar 23, 2024
Merged

ikitommi merged 1 commit into
metosin:masterfrom
frenchy64:destructure-open-map-schema

Conversation

@frenchy64

@frenchy64 frenchy64 commented Mar 14, 2024 •

Copy link
Copy Markdown
Collaborator

A spec of [:altn [:cat k1 s1] ... [:cat kn sn] [:cat :any :any]] is equivalent to [:cat :any :any]. This results in specs for destructured open maps that skip all entry checks when providing kw args.

@frenchy64
frenchy64 marked this pull request as ready for review March 14, 2024 04:36
@ikitommi

Copy link
Copy Markdown
Member

indeed. good catch. thanks!

@ikitommi
ikitommi merged commit ebb5aae into metosin:master Mar 23, 2024
mattiuusitalo added a commit to mattiuusitalo/malli that referenced this pull request May 8, 2025
This behaviour changed in metosin#1021
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.

2 participants