Skip to content

Specify list mock semantics#6

Merged
magicmark merged 4 commits intomock_specfrom
specify-list-mock-semantics
Apr 30, 2026
Merged

Specify list mock semantics#6
magicmark merged 4 commits intomock_specfrom
specify-list-mock-semantics

Conversation

@magicmark
Copy link
Copy Markdown
Owner

@magicmark magicmark commented Apr 30, 2026

Summary

  • add a minimal clarification that mocks beneath list-typed fields use the same mock value for each corresponding list item
  • note that distinct per-item values should be modeled by mocking the list-typed field or an enclosing field
  • allow arrays as mock variant data
  • add a compact mock-file example for a list-typed field

Notes

This is a narrower replacement for the useful semantics explored in #2. It avoids index-style arguments and per-item targeting, since list order and nested list parents make that API fragile.

Validation

  • git diff --check

Draft PR: This PR was sent by Claude and may not have yet been reviewed by markl.

@magicmark magicmark force-pushed the specify-list-mock-semantics branch from 5ca96a3 to b690c9d Compare April 30, 2026 07:20
@magicmark magicmark marked this pull request as ready for review April 30, 2026 07:52
@magicmark magicmark merged commit a916631 into mock_spec Apr 30, 2026
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