Skip to content

Make list/object parse results immutable and add tests#87

Merged
leoafarias merged 2 commits intomainfrom
leoafarias/immutable-parse-results
Mar 3, 2026
Merged

Make list/object parse results immutable and add tests#87
leoafarias merged 2 commits intomainfrom
leoafarias/immutable-parse-results

Conversation

@leoafarias
Copy link
Collaborator

@leoafarias leoafarias commented Mar 3, 2026

This PR makes ListSchema and ObjectSchema return unmodifiable collections before constraints/refinements are applied.
It adds parse_result_immutability_test.dart to verify immutability across object/list/discriminated schemas, nested validated structures, additional-properties behavior, and safeParse flows.
It also includes small formatting-only updates in list_schema_extensions_test.dart for long expect lines.
Validation run: dart test in packages/ack (full suite).

@docs-page
Copy link

docs-page bot commented Mar 3, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/ack~87

Documentation is deployed and generated using docs.page.

@leoafarias leoafarias merged commit df75c6a into main Mar 3, 2026
1 check passed
@leoafarias leoafarias deleted the leoafarias/immutable-parse-results branch March 3, 2026 23:16
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